Support Questions

Find answers, ask questions, and share your expertise

Unable to create root directory in HDFS.

avatar

Recently I accessed hortonworks sandbox in azure. I tried to create a new directory in the root but the "new directory" button seems to be disabled. However, I am able to create sub directories from the available root directories. I understand that this is a problem at access level but I am not sure how to gain access.

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Gokul Devaraj

You can create hdfs user in amabari and the you can create directories on /

1093-screen-shot-2015-12-25-at-72447-am.png

View solution in original post

6 REPLIES 6

avatar
Master Mentor
@Gokul Devaraj

You can create hdfs user in amabari and the you can create directories on /

1093-screen-shot-2015-12-25-at-72447-am.png

avatar

Thanks for the response. Could you please elaborate a bit more on the steps for creating a HDFS user?

avatar
Master Mentor

@Gokul Devaraj

Click admin on the right hand side and choose manage ambari

create local user with name hdfs and make sure to make it admin user while creating it

1094-screen-shot-2015-12-25-at-95026-am.png

avatar
Master Mentor

@Gokul Devaraj Did it help?

avatar

@Neeraj Sabharwal Sorry for the late reply. Yes, creating an ambari user named "hdfs" with root privilege solved the problem. Thanks. 🙂

Anyways, through the command prompt I was able to switch to user - "hdfs" and then create the folder in the root path.

avatar
Master Mentor

@Gokul Devaraj Perfect! Please accept the best answer to close the thread