Creating System Users and Groups
In general, Apache Hadoop services should be owned by specific users and not by root or application users. The following table shows the typical users for Hadoop services. If you choose to install the HDP components using the RPMs, these users are automatically 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 follow this procedure:
Add the user to the group.
useradd -G <groupname> <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 |
Nagios |
nagios |
nagios |