In general Hadoop services should be owned by specific users and not by root or application users. The table below shows the typical users for Hadoop services. If you choose to install the HDP components using the RPMs, these users will automatically be set up.
If you do not install with the RPMs, or want different users, then you must identify the users that you want for your Hadoop services and the common Hadoop group and create these accounts on your system.
To create these accounts manually, you must:
Create the username.
hdfs fs -mkdir /user/<username>
Give that account ownership over its directory.
hdfs fs -chown <username> /user/<username>
Table 1.4. Typical System Users and Groups
Hadoop Service | User | Group |
---|---|---|
HDFS |
hdfs |
hadoop |
YARN |
yarn |
hadoop |
MapReduce | mapred | hadoop, mapred |
Hive |
hive |
hadoop |
HCatalog/WebHCatalog |
hcat |
hadoop |
HBase |
hbase |
hadoop |
Falcon | falcon | hadoop |
Sqoop | sqoop | hadoop |
ZooKeeper |
zookeeper |
hadoop |
Oozie |
oozie |
hadoop |
Knox Gateway | knox | hadoop |