Sqoop命令-选项缺少参数:merge-key

时间:2018-11-10 06:46:29

标签: apache-spark hadoop sqoop sqoop2

在cloudera中的sqoop命令中使用lastmodified和--merget-key选项导入表。它在执行命令时抛出缺少参数的异常。这是我的命令

[cloudera@quickstart ~]$ sqoop import --connect jdbc:mysql://localhost/retail_db --table orders_temp --incremental lastmodified --check-column order_id --split-by order_id --username root --merge-key --P
Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
18/11/09 22:42:15 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.13.0
Missing argument for option: merge-key
[cloudera@quickstart ~]$

1 个答案:

答案 0 :(得分:0)

您需要明确指定要用作合并键的列名称:--merge-key <col>