sqoop import-all-tables:不工作

时间:2016-10-12 13:44:16

标签: sqoop

  • CDH版本= 5.5.0-0
  • 蜂巢过程正在进行中正在运行 - 没有问题

我尝试使用下面的脚本将表从MySQL导入到hive。没有导入Hive的表。可以帮助我解决问题或者我遗漏了什么?

sqoop import-all-tables \
 --num-mappers 1 \
 --connect "jdbc:mysql://quickstart.cloudera:3306/retail_db" \
 --username=reatil_dba \
 --password=cloudera \
 --hive-import \
 --hive-overwrite \
 --create-hive-table \
 --compress \
 --compresession-codec org.apache.hadoop.io.compress.SnappyCodec \
 --outdir java_files 

ERROR:

Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
16/10/12 06:36:21 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.5.0
16/10/12 06:36:21 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
16/10/12 06:36:21 ERROR tool.BaseSqoopTool: Error parsing arguments for import-all-tables:
16/10/12 06:36:21 ERROR tool.BaseSqoopTool: Unrecognized argument: --compresession-codec
16/10/12 06:36:21 ERROR tool.BaseSqoopTool: Unrecognized argument: org.apache.hadoop.io.compress.SnappyCodec
16/10/12 06:36:21 ERROR tool.BaseSqoopTool: Unrecognized argument: --outdir
16/10/12 06:36:21 ERROR tool.BaseSqoopTool: Unrecognized argument: java_files

1 个答案:

答案 0 :(得分:1)

有一个拼写错误,参数名称应为--compresession-codec而不是require ["mime", "imap4flags"]; if header :mime :contenttype "Content-Type" "message/upload-notification" { setflag "\\Seen"; }