上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: 云相册主要工具类之http请求工具类: package com.michael.cloudphotos; import android.os.Message; import android.util.Log; import java.io.BufferedInputStream; import ja 阅读全文
posted @ 2021-10-17 14:48 sean1246 阅读(28) 评论(0) 推荐(0)
摘要: 说明(1)安装Hive之前必须配置好hadoop环境; (2)安装Hive之前必须配置好JDK; (3)本文建议安装mysql数据库·; (4)Hive可以只安装在namenode所在的机器上,如果NameNode有多个,则每个都需要安装,可以不在datanode上安装。 (5)本文hadoop的运 阅读全文
posted @ 2021-10-16 20:21 sean1246 阅读(43) 评论(0) 推荐(0)
摘要: 补充:1)load本地(local)数据到数据库 load data local inpath ‘/opt/sxt/temp/test.txt’ into table people PARTITION (dt=’2016-1-1’);(直接复制会出错)2)举例建几个表(DDL) 1.CREATE T 阅读全文
posted @ 2021-10-15 20:21 sean1246 阅读(43) 评论(0) 推荐(0)
摘要: 配置远程mysql 1)remote一体(未亲测) 这种存储方式需要在远端服务器运行一个mysql服务器,并且需要在Hive服务器启动meta服务。这里用mysql的测试服务器, ip位192.168.13.138,新建hive_remote数据库,字符集位latine1 <?xml version 阅读全文
posted @ 2021-10-14 15:43 sean1246 阅读(27) 评论(0) 推荐(0)
摘要: 配置本地mysql模式(推荐使用,本地指的是能连接上的ip地址服务器)1.修改配置文件vi /opt/sxt/soft/apache-hive-1.2.1-bin/conf/hive-site.xml删除配置derby时的内容,改为<property> <name>hive.metastore.wa 阅读全文
posted @ 2021-10-13 20:02 sean1246 阅读(30) 评论(0) 推荐(0)
摘要: 配置hive: 一、配置本地内置derby模式1.上传hive至linux上(/opt/sxt/soft)2.解压tar -zxvf apache-hive-1.2.1-bin.tar.gz3.配置文件(/opt/sxt/soft/apache-hive-1.2.1-bin/conf) 1)cp h 阅读全文
posted @ 2021-10-12 20:20 sean1246 阅读(34) 评论(0) 推荐(0)
摘要: java操作hdfs: public static void deletedir(FileSystem fs,String dir){ Path hadooppath = new Path(dir); try { if (!fs.exists(hadooppath)){ System.out.pri 阅读全文
posted @ 2021-10-11 15:42 sean1246 阅读(25) 评论(0) 推荐(0)
摘要: java操作hdfs: public static void createfile(FileSystem fs,String hadooppath,String filename){ Path remotePath = new Path(hadooppath); try { if(!fs.exist 阅读全文
posted @ 2021-10-10 01:58 sean1246 阅读(34) 评论(0) 推荐(0)
摘要: java操作hdfs: public static void peintinfo(FileSystem f,String hadooppath){ try { Configuration conf = new Configuration(); FileStatus fs = f.getFileSta 阅读全文
posted @ 2021-10-09 20:15 sean1246 阅读(31) 评论(0) 推荐(0)
摘要: jva操作hsfs: public static void download(FileSystem fs,String hadooppath,String name){ try { File file = new File("D:\\+name"); String newpath=null; if 阅读全文
posted @ 2021-10-08 22:31 sean1246 阅读(54) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页