Yes , now i have whole idea how users and group should be created on any hdfs cluster. First of all i didn't find any group named supergroup in /etc/group.
So good practice is to create your own supergroup.
- sudo addgroup testgroup
- Then create users as many you want. e.g adduser jino
- Then add these users to testgroup
- Then edit hdfs-site.xml property and add this property dfs.permissions.superusergroup, value will be your group name
- Now you can create any number of folders in hdfs and then assign ownership as yourusername:supergroup e.g jino:testgroup
Its not a good pratice to run jobs as super-user. Be advised to create a new group and new account for hadoop/hdfs and then give required permissions as below
$ sudo addgroup hadoop
$ sudo adduser --ingroup hadoop hduser
$ sudo chown hduser:hadoop {directory path}
OR
You can also add the user to hadoop group.
$ sudo adduser --ingroup hadoop jino
I hope this helps :)