Sqoop import gives error: org.apache.hadoop.security.AccessControlException: Permission denied

0 votes

I have created a sql database and have created table. I have made entries in the table and it all works fine. I have verified it with

select * from tablename;

Now I am trying to import this table in sqoop using the following command:

sqoop import --connect jdbc:mysql://localhost/user --username -P --table Employee --target-dir /sqoopOut

But I am getting this error:

Job job_1528714825862_53141 failed with state FAILED due to: Job setup failed : org.apache.h
adoop.security.AccessControlException: Permission denied: user=NULL, access=WRITE, inode="/user":hdfs:supergroup:drwxr-x
r-xr
 

Dec 17, 2018 in Big Data Hadoop by slayer
• 29,040 points

edited Dec 17, 2018 by Omkar 145 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Seems like you are not passing the right username and password to access the sql database.

sqoop import --connect jdbc:mysql://localhost/user --username <username> -P <password> --table Employee --target-dir /sqoopOut

In this command, replace <username> with the username used for the database and replace <password> with the password used for that database and that user. 

answered Dec 17, 2018 by Omkar
• 67,000 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Apache Spark gives "Failed to load native-hadoop with error"

Seems like hadoop path is missing in java.library.path. ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 67,000 points
243 views
0 votes
1 answer

Hadoop hdfs "permission denied" error when I try to make new directory

This is because you dont have enough ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 67,000 points
626 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
• 67,000 points
142 views
0 votes
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
• 9,610 points
1,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
• 9,610 points
167 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
9,348 views
0 votes
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,240 points
675 views
0 votes
1 answer

Hadoop: Error: Could not find or load main class org.apache.hadoop.util.VersionInfo

This seems like a path issue. Add the ...READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 67,000 points
1,170 views
0 votes
1 answer

Hadoop Java: org.apache.hadoop.conf.Configuration does not exist error

To solve this error, add hadoop-common to ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Omkar
• 67,000 points
454 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.