我正在尝试使用增量lastmodified创建一个Sqoop作业,但它会抛出ERROR工具.BaseSqoopTool:无法识别的参数:--merge-key。 Sqoop工作:
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
添加--incremental lastmodified
。