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"

 

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