Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Not able to locate admin folder uder user in HDFS files view

avatar
Rising Star

I am following a tutorial of Pig Basics and want upload the data files , but unable locate the admin folder under user in HDFS view

1 ACCEPTED SOLUTION

avatar

@niraj nagle

I think you have to create those folders. Do the following from command line as root user.

su - hdfs 
hdfs dfs -mkdir /user/admin
hdfs dfs -chmod 755 /user/admin
hdfs dfs -chown admin:hadoop /user/admin

View solution in original post

6 REPLIES 6

avatar

@niraj nagle

I think you have to create those folders. Do the following from command line as root user.

su - hdfs 
hdfs dfs -mkdir /user/admin
hdfs dfs -chmod 755 /user/admin
hdfs dfs -chown admin:hadoop /user/admin

avatar
Master Guru

Check your second command, you omitted "dfs".

avatar
Master Mentor
@niraj nagle

You have to create the directory. You can use FS view to do that.

Create a local user in ambari called hdfs and use hdfs to login to ambari then using FS view you can create /user/admin and change ownership

or Follow as @bsaini suggested

avatar
Master Mentor

@niraj nagle

You missed dfs in your Chmod command

avatar
Master Mentor

@niraj nagle Look into the option to create hdfs user in ambari as it will make your life easier.