//prepare csv year,make,model,comment,blank "2012","Tesla","S","No comment", "1997","Ford,E350","Go get one now they are going fast", "2015","Chevy","Volt"…
命令 hive -e " set hive.cli.print.header=true; #将表头输出 select * from data_table where some_query_conditions " | sed 's/[\t]/,/g' > hhd.csv set hive.cli.print.header=true将表头输出:sed 's/[\t]/,/g' 将\t替换成,> 将shell里打印的内容输出到文件…