sqoopt import --incremental lastmodifed with --merge-key

PHOTO EMBED

Sun Apr 10 2022 11:09:37 GMT+0000 (Coordinated Universal Time)

Saved by @irfan309

# with --merge-key 

sqoop-import --connect \
jdbc:mysql://quickstart.cloudera:3306/retail_db \
--username retail_dba --password cloudera \
--table orders \
--warehouse-dir /data \
--incremental lastmodified \
--check-column order_date \
--last-value '2022-04-10 03:21:14.0' --merge-key order_id
content_copyCOPY