Support Questions
Find answers, ask questions, and share your expertise

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

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

Master Collaborator

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

7 REPLIES 7

Master Collaborator

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

 

sudo -u hdfs hdfs dfsadmin -safemode leave

 

HTH

Explorer

this worked for me.

thanks,

raj

Explorer

Thanks Clint !!

New Contributor

Thanks. This works for me as well. 🙂 

New Contributor

thanks sir

 

New Contributor

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 ? 

New Contributor

sudo -u hdfs hdfs dfsadmin -safemode leave

; ;