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( Permission denied: user=smileanbu13, access=EXECUTE, inode="/user/trainin

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 /user/srpankaj12/datacopy

@smileanbu13 -

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


1 Like