hive重定向输出指定分隔符
20191114
- 1
insert overwrite local directory '/home/mypath/test' row format delimited fields terminated by ',' select * from mytable;
- 2
hive -e "select * from mytable" | tr " " "," > test.csv
- 3
hive -e "select * from mytable" | sed 's/ /,/g' > > test.csv