- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Not able to locate admin folder uder user in HDFS files view
- Labels:
-
Apache Hadoop
-
Apache Pig
Created 01-20-2016 03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 01-20-2016 03:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 01-20-2016 03:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 01-20-2016 03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 01-20-2016 04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check your second command, you omitted "dfs".
Created 01-20-2016 03:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 01-20-2016 04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You missed dfs in your Chmod command
Created 01-20-2016 04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@niraj nagle Look into the option to create hdfs user in ambari as it will make your life easier.