Cannot use hadoop commands in the open console

i want to move the data/cards directory to HDFS .

1)I did to create a directory name training inside /user/smileanbu13 (HDFS workspace) but not able to create a directory in HDFS in the open console.

2)How we can move the data to HDFS.I’m getting the below error

[smileanbu13@gw01 /]$ hadoop fs -copyFromLocal ~/cards /user/training/cards
17/03/29 09:46:41 WARN retry.RetryInvocationHandler: Exception while invoking ClientNamenodeProtocolTranslatorPB.getFileInfo over null. Not retrying because try on
ce and fail.
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=smileanbu13, access=EXECUTE, inode="/user/trainin
g/cards":training:hdfs:drwx------

Please advise how to create a new directory in hdfs and move the data from the data directory.
please help me asp.

Here, I used this, and it ran fine.

Creating a directory -> hdfs dfs -mkdir /user/srpankaj12/datacopy

Copying file from local to hdfs -> hdfs dfs -copyFromLocal categories.java /user/srpankaj12/datacopy

@smileanbu13 -

You are trying to copy to “training” user which you don’t have access. Replace “training” with your user id.
/user/training/cards

e.g
/user/smileanbu13/cards

1 Like