Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add user in supergroup of hdfs in linux? [closed]

Tags:

I was working on hdfs then i found something that permissions checks are not performed for the super-user. If my linux user is sandy and i want add sandy to group of super-user. So permissions denied will not occur, is it feasible to do that in hdfs configuration. And if there is no problem in assigning the user to supergroup then how to do it ?

like image 244
sandip divekar Avatar asked Jun 12 '14 12:06

sandip divekar


1 Answers

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.

  1. sudo addgroup testgroup
  2. Then create users as many you want. e.g adduser sandy
  3. Then add these users to testgroup
  4. Then edit hdfs-site.xml property and add this property dfs.permissions.superusergroup, value will be your group name
  5. Now you can create any number of folders in hdfs and then assign ownership as yourusername:supergroup e.g sandy:testgroup
like image 109
sandip divekar Avatar answered Sep 22 '22 18:09

sandip divekar