HDFS - User Group

Yarn Hortonworks

About

User group

Management

List

  • List group of a user. The same than id -Gn userName on the local file system
hdfs groups userName
  • List group of all users. The fs.default.name property is only mandatory when using azure wasb
hdfs dfs -ls /user | tail -n +2 | awk '{print $8}' | while read -r userName; do
    hdfs groups  -D "fs.default.name=hdfs://namenode/" ${userName#/user/}
done

where:

  • tail -n +2 suppress the first line
  • awk '{print 8}' print only the directory part

Output:

admin : admin users
admininformatica :
ambari-qa : hadoop users
ams : hadoop
hbase : hadoop
hcat : hadoop
hive : hadoop
livy : hadoop
oozie : hadoop users
root : root
spark : hadoop
sshuser : sshuser adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd
zeppelin : zeppelin

Admin

See HDFS - Permissions (Authorization)

The default administrator group is hdfs.

hdfs getconf -confKey dfs.permissions.superusergroup
hdfs





Discover More
Yarn Hortonworks
HDFS - Permissions (Authorization)

in HDFS A user authorization is defined through one of the below method: POSIX style permissions/HDFS ACLs or Apache Ranger Apache Knox (Authentication Services)...
Yarn Hortonworks
HDFS - User

User management in HDFS See: List group of a user See The default administrator user is hdfs. The default administrator group is hdfs.
Yarn Hortonworks
Hadoop Distributed File System (HDFS)

is a clustered file system. See for an architectural overview. Amazon S3 Doc...



Share this page:
Follow us:
Task Runner