
Hive
白菜banger
这个作者很懒,什么都没留下…
展开
-
安装HIVE
安装HIVE 单用户搭建: 使用压缩版本: 1.解压缩hive到/opt当中 2.配置环境变量 vim /etc/profile 3.在conf文件夹下配置信息 修改配置文件:mv hive-default.xml.template hive-site.xml 配置以下信息: <configuration> <property> <name...原创 2019-06-27 16:21:03 · 132 阅读 · 0 评论 -
Hive wordcunt
单词统计: 数据: hello hello word hello wc wc wc bye bye hello word hello nihao chaina 创建数据表:(只有一个列不需要row format) create table wc ( line string ); 放入数据: load data local inpath '/root/table/wc' into table wc...原创 2019-06-28 16:20:13 · 299 阅读 · 0 评论 -
HiveSql
HiveSql案例 数据: 人员表 id,姓名,爱好,住址 1,小明1,lol-book-movie,beijing:xisanqi-shanghai:pudong 2,小明2,lol-book-movie,beijing:xisanqi-shanghai:pudong 3,小明3,lol-book-movie,beijing:xisanqi-shanghai:pudong 4,小明4,lol-b...原创 2019-06-28 16:28:56 · 150 阅读 · 0 评论 -
Hive的优化
Hive的优化 Hive的运行方式: 开启hive服务 :在服务区端开启hive --service metastore 本地模式:set hive.exec.mode.local.auto=true; 集群模式:set hive.exec.mode.local.auto=false; 注意:hive.exec.mode.local.auto.inputbytes.max默认为128M,超过...原创 2019-06-29 17:41:53 · 175 阅读 · 0 评论