Reply
New Contributor
Posts: 1
Registered: ‎10-14-2013
Accepted Solution

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

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.

Posts: 416
Topics: 51
Kudos: 76
Solutions: 49
Registered: ‎06-26-2013

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

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

 

sudo -u hdfs hdfs dfsadmin -safemode leave

 

HTH

New Contributor
Posts: 7
Registered: ‎05-03-2014

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

this worked for me.

thanks,

raj

Explorer
Posts: 9
Registered: ‎09-28-2014

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

Thanks Clint !!

New Contributor
Posts: 1
Registered: ‎10-13-2016

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

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 ? 

Highlighted
New Contributor
Posts: 1
Registered: ‎02-03-2018

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

Thanks. This works for me as well. :-) 

Announcements