1. 数据库中备份 hive (h_sample)> create table info_output select * from info; 2. 终止hive,导出数据 [bin]$ hive -e 'select * from h_sample.info_output' | sed 's/[\t]/,/g' > /home/hadoop/datas/data1.csv 3. xftp导出