Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDFS Directory creation Permission denied

Highlighted

HDFS Directory creation Permission denied

Explorer

I just installed Cloudera 5.8 Quickstart VM.

 

 

Now I am trying to create a directory under hdfs in /user folder.

 

 

I executed 

hdfs dfs -mkdir /user/dmishra

I am getting error as 

[cloudera@quickstart ~]$ hdfs dfs -mkdir /user/dmishra
mkdir: Cannot create directory /user/dmishra. Name node is in safe mode.

 

some time I get

mkdir: Permission denied: user=cloudera, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

Ho do I make all the service are good in Cloudera VM.

Also I ant to know how do  I insert an Image that is saved in my computer so that I could display the service

running in VM

 

3 REPLIES 3
Highlighted

Re: HDFS Directory creation Permission denied

Super Collaborator
I am getting error as 

[cloudera@quickstart ~]$ hdfs dfs -mkdir /user/dmishra
mkdir: Cannot create directory /user/dmishra. Name node is in safe mode.

When your namenode is in "safe mode" it means it is in "read only". You need to exit the safe mode before writing to HDFS.

If the namenode enter safe mode without you telling him, it also means you have an issue (disk space ?, configuratoin issue ? ...)

 

some time I get

mkdir: Permission denied: user=cloudera, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

That error is pretty straight forward.

It mean the user "cloudera" do not have "write" permission on the HDFS folder "/user". This works exactly like a linux box.

 

Also, it tells you that the folder "/user" is owned by the user "hdfs" and the group associated is "supergroup" with the following permission ( read write cross for the owner. read and cross for the group. read and cross for "others").

 

If you want to create a folder inside "/user" you need to be the owner with the current sets of permissions.

Highlighted

Re: HDFS Directory creation Permission denied

Explorer

 

    Thank you for your reply.

   When I am installing the cloudera VM, I think all the settings are already configured. I restarted the all of the service and Cloudera management service. Then I I think my cloudera vm got this error.

What is the command or what service I need to fix , so I can resolve my issue.

 

Thanks

 

Re: HDFS Directory creation Permission denied

Explorer

 

    Thank you for your reply.

   When I am installing the cloudera VM, I think all the settings are already configured. I restarted the all of the service and Cloudera management service. Then I I think my cloudera vm got this error.

What is the command or what service I need to fix , so I can resolve my issue.

 

Thanks

 

Don't have an account?
Coming from Hortonworks? Activate your account here