Sqoop根據字段的篩選條件導入Hive

我們這裏使用參數 

--where "day>=20191001"

來控制條件篩選,那麼我們使用案例如下:

sqoop import --connect jdbc:mysql://ip:3306/db——name --username user_name --password password -m 10 --table source_table --hive-import  --hive-table hive_db.hive_table --create-hive-table --where "day>=20191001"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章