Sqoop: ERROR tool.BaseSqoopTool: Error parsing arguments

0 votes

I am trying to run Sqoop import command but getting the below error:

[edureka_601344@ip-20-0-41-62 ~]$ sqoop import --connect jdbc:mysql://mysqldb.edu.cloudlab.com/employee --username labuser --passowrd edureka --table departments --target-dir /TestData --m 1
Warning: /opt/cloudera/parcels/CDH-5.11.1-1.cdh5.11.1.p0.4/bin/../lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
19/06/01 23:01:29 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.11.1
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: --passowrd
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: edureka
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: --table
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: departments
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: /TestData
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: --m
19/06/01 23:01:29 ERROR tool.BaseSqoopTool: Unrecognized argument: 1

Please explain what is wrong here and how to execute it.

Aug 2, 2019 in Big Data Hadoop by Will
2,129 views

1 answer to this question.

0 votes

There are two mistakes in the command you are executing,

1. The spelling of password is incorrect in the command.

2. There should not be a forward slash before writing the target directory name. The default path of target directory is hdfs://nameservice1/user/edureka_<your_id>/. So, you don't have to mention the complete path in the command and also the forward slash. You can directly write the directory name.

So, the correct command will be as below,

sqoop import --connect jdbc:mysql://mysqldb.edu.cloudlab.com/employee --username labuser --password edureka --table departments --target-dir TestData --m 1 
answered Aug 2, 2019 by Kunal

Related Questions In Big Data Hadoop

0 votes
1 answer

Sqoop: ERROR tool.BaseSqoopTool: Unrecognized argument

The command you are executing is slightly ...READ MORE

answered Aug 1, 2019 in Big Data Hadoop by Sam
1,332 views
0 votes
1 answer

Hadoop sqoop import not working. Error: ERROR manager.SqlManager: Error reading from database

In the command, try mentioning the driver ...READ MORE

answered Dec 5, 2018 in Big Data Hadoop by Omkar
• 69,030 points
597 views
0 votes
1 answer
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
5,872 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
881 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
37,043 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,195 views
0 votes
1 answer

Sqoop getting error while connecting to MySQL

Have you set a password for MySQL? ...READ MORE

answered Feb 7, 2019 in Big Data Hadoop by Omkar
• 69,030 points
160 views
0 votes
1 answer

Sqoop import: import failed error

The problem which you are facing is ...READ MORE

answered Feb 11, 2019 in Big Data Hadoop by Omkar
• 69,030 points
979 views