9. [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. Add the user to the group.

    useradd -G <groupname> <username>

  2. Create the username directory.

    hdfs fs -mkdir /user/<username>

  3. Give that account ownership over its directory.

    hdfs fs -chown <username>:<groupname> /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

Nagios

nagios

nagios



loading table of contents...