Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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
Frequent Visitor

Thanks. This works for me as well. 🙂 

avatar
New Member

thanks sir

 

avatar
New Member

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
Visitor

sudo -u hdfs hdfs dfsadmin -safemode leave

avatar
Frequent Visitor

yes.i have this issue how to solve it