Hive基础@2019-09-02

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;

你可能感兴趣的:(Hive基础@2019-09-02)