生活随笔
收集整理的這篇文章主要介紹了
Sqoop使用手册
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.1 執行模式:
1.1.1 Shell腳本:
bin/sqoop
import -m 1 \
--connect jdbc:mysql://xxxxx:3306/zjs_test --username root --password soa123456 \
--table czrk \
--hive-import \
--delete-target-dir \
--target-dir /test/czrk \
--hive-database admin_admintest \
--hive-overwrite \
--hive-table czrk \
--fields-terminated-by
'\001'
1.1.2 文件的方式執行:–options-file
bin/sqoop --options-file /opt/datas/sqoop-import-hdfs.txtsqoop-import-hdfs.txt 文件內容:
import
--connect
jdbc:mysql://xxxx:3306/test
--username
root
--password
123456
--table
my_user
--target-dir
/user/sqoop/imp_my_user
--num-mappers
1
1.1.3 密碼保護模式:
總結
以上是生活随笔為你收集整理的Sqoop使用手册的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。