I'm trying to create a group on one of my datanodes that will have superuser privileges for hdfs and associated fs commands.

So far I have:

  • Checked to see that dfs.permissions.superusergroup=supergroup (default)

  • Created a local group on the datanode using : groupadd supergroup

  • Added a local linux user to supergroup

I still receive errors that I'm not the super user when I run "hadoop dfsadmin -report" and I should be able to access anything within the hdfs regardless of permission as a super user but I can't.


You say you did this on a DataNode, but the HDFS Permissions Guide says "For HDFS, the mapping of users to groups is performed on the NameNode. Thus, the host system configuration of the NameNode determines the group mappings for the users."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.