INSERT 命令导出:(失败)
insert overwrite local directory '/mnt/UbuntuShare/charles_train'
row format delimited fields terminated by ','
select * from o2o.charles_train;
报错
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. Unable to move source file:/tmp/hadoop/3946b65f-05d2-4ad5-89a7-7b50cb0a7a12/hive_2019-09-16_20-17-38_134_4896086242910574445-1/-mr-10000 to destination /mnt/UbuntuShare/charles_train_feature
Hive Shell 命令导出:(成功)
cd /usr/local/hive
bin/hive -e "select * from o2o.charles_train;" >> /mnt/UbuntuShare/charles_train.csv