8. [Optional] Create System Users and Groups

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:

  1. Create the username.

    hdfs fs -mkdir /user/<username>
  2. Give that account ownership over its directory.

    hdfs fs -chown <username> /user/<username>
 

Table 1.4. Typical System Users and Groups

Hadoop ServiceUserGroup

HDFS

hdfs

hadoop

YARN

yarn

hadoop

MapReducemapredhadoop, mapred

Hive

hive

hadoop

HCatalog/WebHCatalog

hcat

hadoop

HBase

hbase

hadoop

Falconfalconhadoop
Sqoopsqoophadoop

ZooKeeper

zookeeper

hadoop

Oozie

oozie

hadoop

Knox Gatewayknoxhadoop


loading table of contents...