You need to double check which group is setup in hdfs-site.xml. The parameter 
is: dfs.permissions.superusergroup

Thanks
Olivier

From: Pratik Gadiya
Reply-To: "[email protected]<mailto:[email protected]>"
Date: Friday, 8 May 2015 15:46
To: "[email protected]<mailto:[email protected]>"
Subject: Access on HDFS

Hi All,

I want to add a user who can create/remove and perform all the operations on 
hdfs.

Here is what I tried:


1.       Create user: adduser admin

2.       /usr/sbin/usermod -a -G hdfs admin

And when I try to create a directory on hdfs under “/” it raises error as 
follows,
[root@vmkdev0021 ~]# id admin
uid=500(admin) gid=500(admin) groups=500(admin),498(hdfs)

[root@vmkdev0021 ~]# su admin
[admin@vmkdev0021 root]$ hadoop  fs -mkdir /input
mkdir: Permission denied: user=admin, access=WRITE, 
inode="/":hdfs:hdfs:drwxr-xr-x

Please let me know how can I overcome this, this is reallly bugging me.

With Regards,
Pratik Gadiya


DISCLAIMER ========== This e-mail may contain privileged and confidential 
information which is the property of Persistent Systems Ltd. It is intended 
only for the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you are not authorized to read, retain, copy, 
print, distribute or use this message. If you have received this communication 
in error, please notify the sender and delete all copies of this message. 
Persistent Systems Ltd. does not accept any liability for virus infected mails.

Reply via email to