user3099103
user3099103

Reputation: 103

Sqoop job Unrecognized argument: --merge-key

I am trying to create a Sqoop job with incremental lastmodified, but it throws ERROR tool.BaseSqoopTool: Unrecognized argument: --merge-key. Sqoop job:

sqoop job --create ImportConsentTransaction -- import --connect jdbc:mysql://quickstart:3306/production --table ConsentTransaction --fields-terminated-by '\b' --incremental lastmodified --merge-key transactionId --check-column updateTime --target-dir '/user/hadoop/ConsentTransaction' --last-value 0 --password-file /user/hadoop/sqoop.password --username user -m 1

Upvotes: 0

Views: 165

Answers (1)

changji guo
changji guo

Reputation: 1

Add --incremental lastmodified.

Upvotes: -1

Related Questions