2017-02-28 3 views
-1
sqoop job --create myjob --import --connect "jdbc:mysql://localhost/classicmodels" --username root --password 123 --table customers -m 1 --taget-dir /manoj280217/sqoop 

エラー発生しました:sqoopジョブにERROR tool.BaseSqoopTool:ジョブの解析エラー引数:Sqoop私はsqoopでジョブを作成しようとしましたが、次のエラーが

17/02/28 08:56:18 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Error parsing arguments for job: 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --import 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --connect 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:mysql://localhost/classicmodels 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --username 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: root 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --password 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: 123 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --table 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: customers 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: -m 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: 1 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: --taget-dir 
17/02/28 08:56:18 ERROR tool.BaseSqoopTool: Unrecognized argument: /manoj280217/sqoop 

答えて

5

構文は

です
sqoop-job (generic-args) (job-args) [-- [subtool-name] (subtool-args)] 

あなたのコマンドがあるべき

sqoop job --create myjob -- import --connect "jdbc:mysql://localhost/classicmodels" --username root --password 123 --table customers -m 1 --taget-dir /manoj280217/sqoop 

--import

+0

@ManojKumarGovindharajの間のスペースを参照してください。 –

関連する問題