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.

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

Solved Go to solution

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

Accepted Solutions

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

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

7 REPLIES 7

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

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

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

New Contributor

this worked for me.

thanks,

raj

Highlighted

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

Explorer

Thanks Clint !!

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

New Contributor

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

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

New Contributor

thanks sir

 

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

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 ? 

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

New Contributor

sudo -u hdfs hdfs dfsadmin -safemode leave