gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 20:31:14 24 4
gpt4 key购买 nike

在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 ~]$

最佳答案

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

关于apache-spark - Sqoop命令-选项缺少参数:merge-key,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53236653/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com