hive -e "sql语句"
hive -f "sql文件"
导入数据到hive
hive> load data inpath 'xxxxxxxxxxxxxxxxx' overwrite | into table tableName [partation (dt = xxxxx)]
导出数据
hive> export table TableNmae to 'xxxxxxxxxxxxxx';
hive> import table TableNmae from 'XXXXXXXXXXXXXXXXXXX';
insert overwrite directroy 'XXXXXXXXXXXXXX' select * from tableName;
网友评论