Vilas D.
Vilas D.

Reputation: 175

get : permission denied in hadoop

When I execute the get command it says permission denied, I tried the already given solution but didn't worked. Following is the command and its op

hduser@ubuntu:~$ hadoop fs -get /user/hduser/Input/pg*.txt /home/vilas/Desktop/
Warning: $HADOOP_HOME is deprecated.

get: Permission denied

Upvotes: 1

Views: 6400

Answers (2)

Mittul Mandhan
Mittul Mandhan

Reputation: 15

you must go into the desktop directory, open the terminal there and run the command

hadoop fs -get /user/hduser/Input/pg*.txt .

Upvotes: 0

Y.H.
Y.H.

Reputation: 2847

Check out the permissions of this /user/hduser directory, maybe hduser does not have permission to access it, if so then you can execute the following command (as hdfs user)

hdfs dfs chown hduser:hduser /user/hduser

More information about chown here.

then try again.

Upvotes: 1

Related Questions