获取"解析导入的参数时出错#34;在尝试将表格从postgres导入HDFS时?

时间:2017-09-14 05:34:09

标签: postgresql hadoop sqoop

我使用以下命令导入数据库:

sqoop import --connect 'jdbc:postgresql://0.0.0.0:5432/toptal?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory' -P \
--username 'capacityprediction_user'\
--table 'raw_hd' \
--target-dir '/home/raw_hd'

我是Hadoop的新手,我已经按照以下链接 https://www.toptal.com/database/hdfs-tutorial-data-migration-from-postgresql

我得到的错误是:

17/09/14 05:32:24 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
17/09/14 05:32:24 ERROR tool.BaseSqoopTool: Unrecognized argument: raw_hd
17/09/14 05:32:24 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir
17/09/14 05:32:24 ERROR tool.BaseSqoopTool: Unrecognized argument: /home/raw_hd

0 个答案:

没有答案