在后面加入| tr "\t" ","即可:
| tr "\t" ","
hive -e "select * from tablename" | tr "\t" "," > local.csv
相关文章: