Permission denied to write to folder when using sqoop import

sqoop

#1

Hi, Created the needed folder structure with full permission and tried executing the sqoop import command. Tried with 2 different paths. got the same error for both. Please advise

Error -->
18/07/05 08:00:54 INFO mapreduce.Job: map 0% reduce 0%
18/07/05 08:00:55 INFO mapreduce.Job: Job job_1528589352821_15320 failed with state FAILED due to: Job setup failed : org.apache.hadoop.security.AccessControlException: Permission denied: user=unirkr123, access=WRITE, inode="/home/unirkr123/sqoop_import/retail_db/order_items/_temporary/1":hdfs:hdfs:drwxrwxr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:292)

Commands used -->

sqoop import
–connect jdbc:mysql://ms.itversity.com:3306/retail_db
–username retail_user
–password itversity
–table order_items
–target-dir /usr/tmp/unirkr/sqoop_import/retail_db/order_items

sqoop import
–connect jdbc:mysql://ms.itversity.com:3306/retail_db
–username retail_user
–password itversity
–table order_items
–target-dir /home/unirkr123/sqoop_import/retail_db/order_items


#2

Hi @unirkr Give HDFS path.

--target-dir /user/unirkr123/sqoop_import/retail_db/order_items


#3

hi annapurna,
is this the HDFS path
cd /usr/hdp/current/sqoop-client/lib/
i do not have permission to create directory under cd /usr/

I am using itversity labs. help me figure out the hdfs path.