我們這裏使用參數
--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"