- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
report: Access denied for user root. Superuser privilege is required
- Labels:
-
HDFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎01-18-2018 08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎01-18-2018 07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎01-18-2018 07:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to go to superuser group ?
Created ‎01-18-2018 08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎01-18-2018 08:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, issue has been resolved.
