我使用以下命令导入数据库:
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