Reply
Highlighted
Explorer
Posts: 23
Registered: ‎12-10-2018

How to add user to group in HDFS?

Hi, i need to create new user and grant to it few rules (on select of couple schemas).

i create group, create user, assign user to group, and see it in hdfs - and there're no groups.

 

1.  sudo adduser tezd_user

2.  sudo groupadd tezd_group

3. sudo usermod -a -G tezd_group tezd_user

4. groups tezd_user >> tezd_user : tezd_user tezd_group

5. hdfs groups tezd_user >> tezd_user :

 

So, user have no group - have to rules - have no access to any action in db.

How to set group for user, and how to get rules to user (i think, it makes by addition group to user)?

Explorer
Posts: 23
Registered: ‎12-10-2018

Re: How to add user to group in HDFS?

It's simple...
There're no "hdfs group" - u mast assign user and group in host-os.
And, if u have a cluster, u mast do it at "main node" (or at every node if "main" migrate to another server).

But it doen't solve my core problem: "need to create new user and grant to it few rules (on select of couple schemas)."
So, user in group, group have premissions, but there are no effect of it.
What must i do in this case?