
hive
learnbigger
终身学习者
展开
-
spoolingdir-kafka-hive典型日志收集flume配置
1,准备工作hive 添加分区信息,orc表,分区,分桶,字段小写ALTER TABLE http add PARTITION (day=20181228,hour=18);hive metastore服务开启hive --service metastore2,flume kafka sink# Name the components on this agent# ...原创 2019-01-07 18:10:06 · 272 阅读 · 0 评论 -
hive向脚本传参
function load2hive(){ hive -hivevar path=$1 -hivevar table=$2 -f '/home/greenet/gnhadoop/hive_sql_dml2.sql'}load2hive $radius_remote $radius_tablesql,注意table不需要引号use ctlan;load data local i...原创 2018-04-27 17:51:34 · 1012 阅读 · 0 评论