Support Questions

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

safemode: Access denied for user cloudera. Superuser privilege is required.

avatar
New Contributor

I am using the cloudera VM and geting below error when run the below command from terminal.

 

[cloudera@localhost ~]$ hdfs dfsadmin -safemode leave
safemode: Access denied for user cloudera. Superuser privilege is required

 

Quick help will appreciate.

1 ACCEPTED SOLUTION

avatar
Guru

That command must be run as the HDFS superuser (usually "hdfs").  So, try it this way:

 

sudo -u hdfs hdfs dfsadmin -safemode leave

 

HTH

View solution in original post

8 REPLIES 8

avatar
Guru

That command must be run as the HDFS superuser (usually "hdfs").  So, try it this way:

 

sudo -u hdfs hdfs dfsadmin -safemode leave

 

HTH

avatar
Explorer

this worked for me.

thanks,

raj

avatar
Contributor

Thanks Clint !!

avatar
New Contributor

Thanks. This works for me as well. 🙂 

avatar
New Contributor

thanks sir

 

avatar
Explorer

I am having this issue.

Tried with the command you have given however there is one more error which says -

 

Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file:
<some value>
Try using the -Djava.io.tmpdir= option to select an alternate temp location.

 

i am not sure about setting this Djava.io.tmpdir, can you please help ? 

avatar
New Contributor

sudo -u hdfs hdfs dfsadmin -safemode leave

avatar
New Contributor

yes.i have this issue how to solve it