尝试使用sqoop作业进行增量导入,得到以下错误

时间:2018-01-10 07:22:49

标签: hadoop hdfs sqoop

这是我用来为增量导入创建sqoop作业的代码,hdfs中存在已存储数据的文件。我添加了几行以检查sqoop上的增量导入,但是我收到如下错误,请帮助,提前致谢。

sqoop job \
--create incimp \
--import \
--connect "jdbc:sqlserver://<localhost>;database=<db>" \
--username "username" \
--password "password" \
--driver "com.microsoft.sqlserver.jdbc.SQLServerDriver" \
--table "tablename" \
--append --check-column "columnname" \
--last-value "<name>" \
--incremental lastmodified \
--fields-terminated-by ',' \
--target-dir "<hdfs-path>" \
-m 1

**18/01/10 12:24:39 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Error parsing arguments for job:
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --import
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --connect
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:sqlserver://<localhost>;database=<db>
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --username
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: username
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --password
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: password
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --driver
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: com.microsoft.sqlserver.jdbc.SQLServerDriver
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --table
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: tablename
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --append
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --check-column
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: columnname
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --last-value
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: <name>
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --incremental
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: lastmodified
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --fields-terminated-by
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: ,
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: <hdfs-path>
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: -m
18/01/10 12:24:39 ERROR tool.BaseSqoopTool: Unrecognized argument: 1
Try --help for usage instructions.**

0 个答案:

没有答案