摘要: flume常用命令 //复制 文件 cp exec.conf tcp.conf flume-ng agent -c . -f avro.conf -n a1 -Dflume.root.logger=info,console flume-ng avro-client -c . -H linux05 - 阅读全文
posted @ 2019-05-14 21:43 lilixia 阅读(657) 评论(0) 推荐(0) 编辑
摘要: add jar /root/Downloads/apache-hive-1.2.0-bin/lib/udf.jar; 1.引jar 写自己想用的方法 2.将jar 放入hive中的lib下 3.创建一个临时的方法 create temporary function allsal as "com.bw 阅读全文
posted @ 2019-05-14 16:24 lilixia 阅读(168) 评论(0) 推荐(0) 编辑
摘要: hive> select pmod(sal,2) from emp; //创建表 人名 分数 hive> create table sc(name string,scores Array<int>) row format delimited fields terminated by " " coll 阅读全文
posted @ 2019-05-14 15:36 lilixia 阅读(157) 评论(0) 推荐(0) 编辑
摘要: lateral viem 表的关联只能和explode使用 hive> select explode(info) from t_map where id=1; 1 CN_lldd2 CN_sjd3 CN_jp4 CN_rpt5 USA_yns6 USA_sd7 USA_ydfdf8 USA_gdff 阅读全文
posted @ 2019-05-14 14:27 lilixia 阅读(2501) 评论(0) 推荐(0) 编辑
摘要: 所有的命令都显示找不到了,原因是修改了/etc/profile造成的 解决方法 执行: export PATH=/bin:/usr/bin:$PATH 阅读全文
posted @ 2019-05-14 13:57 lilixia 阅读(1058) 评论(0) 推荐(0) 编辑