sqoop 从HIVE导出表到MYSQL

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gghwcf/article/details/82108374

根据HIVE的分割符来确定是用/001还是/t还是',',hive默认的分割符是/001.

sqoop export --connect jdbc:mysql://localhost:3306/test --username xxx --password xxxx --table result_oltuserflowdiscard --export-dir /user/hive/warehouse/big.db/result_oltuserflowdiscard/000000_0 --input-fields-terminated-by '\001'

猜你喜欢

转载自blog.csdn.net/gghwcf/article/details/82108374