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.

report: Access denied for user root. Superuser privilege is required

Solved Go to solution

report: Access denied for user root. Superuser privilege is required

Explorer

Hi,

when i run hdfs dfsadmin -report command. I get the Access denied for user root. Superuser privilege is required error. please help?

 

hdfs dfsadmin -report
Configured Capacity: 778288271867904 (707.85 TB)
Present Capacity: 776586815760931 (706.30 TB)
DFS Remaining: 282227055766051 (256.68 TB)
DFS Used: 494359759994880 (449.62 TB)
DFS Used%: 63.66%
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
Missing blocks (with replication factor 1): 0

-------------------------------------------------
report: Access denied for user root. Superuser privilege is required

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: report: Access denied for user root. Superuser privilege is required

Guru

Hi,

that indicates your os user "root" is not the superuser of HDFS (root is just the "superuser" of the operating system).

Try to do the same as user "hdfs" (which is by default the hdfs superuser), as root do:

 

su - hdfs
hdfs dfsadmin -report

Basically, the HDFS superuser is the user, under which account the Namenode is started.

 

Alternatively you can add the os-user "root" to the group which is set as hdfs supergroup. Check for property

dfs.permissions.supergroup

and add "root" to this group (which points to an os group)

 

HTH, Gerd

4 REPLIES 4

Re: report: Access denied for user root. Superuser privilege is required

New Contributor
Try to remove the hdfs in the superuser group and check

Re: report: Access denied for user root. Superuser privilege is required

Explorer

how to go to superuser group ?

Highlighted

Re: report: Access denied for user root. Superuser privilege is required

Guru

Hi,

that indicates your os user "root" is not the superuser of HDFS (root is just the "superuser" of the operating system).

Try to do the same as user "hdfs" (which is by default the hdfs superuser), as root do:

 

su - hdfs
hdfs dfsadmin -report

Basically, the HDFS superuser is the user, under which account the Namenode is started.

 

Alternatively you can add the os-user "root" to the group which is set as hdfs supergroup. Check for property

dfs.permissions.supergroup

and add "root" to this group (which points to an os group)

 

HTH, Gerd

Re: report: Access denied for user root. Superuser privilege is required

Explorer

Thanks, issue has been resolved.

Don't have an account?
Coming from Hortonworks? Activate your account here