Support Questions

Find answers, ask questions, and share your expertise

​hadoop fs -put ./Batting.csv /user/guest/

New Contributor

hadoop fs -put ./Batting.csv /user/guest/

put: Permission denied : user=root, access=WRITE, inode="/user/guest/Battings.csv_COPYING_":guest:guest:drwxr-xr-x

login as a root with password hadoop

1 ACCEPTED SOLUTION

@John J

Its because of permission issue.

Permission denied : user=root, access=WRITE, inode="/user/guest/Battings.csv_COPYING_"

Log in as root then do this

su - hdfs

hdfs dfs -chown -R guest:hdfs /user/guest

exit

su - guest

hadoop fs -put ./Batting.csv /user/guest/

View solution in original post

2 REPLIES 2

Mentor

@John J

copy the file to /home/guest as root "cp Batting.csv /home/guest"

then "su guest" then you can upload to /user/guest

or

sudo -u guest hdfs dfs -put Batting.csv /user/guest

@John J

Its because of permission issue.

Permission denied : user=root, access=WRITE, inode="/user/guest/Battings.csv_COPYING_"

Log in as root then do this

su - hdfs

hdfs dfs -chown -R guest:hdfs /user/guest

exit

su - guest

hadoop fs -put ./Batting.csv /user/guest/

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.