1. 程式人生 > >sqoop mysql資料匯入Hive中

sqoop mysql資料匯入Hive中

sqoop import --connect jdbc:mysql://192.168.8.97:3306/db1?charset-utf8  --username root --password 123456 --table pd_info --columns "pid,cid" --fields-terminated-by "\t" --lines-terminated-by "\n" --hive-import --create-hive-table --hive-table hive_tab