Big Data Architect’s Handbook
上QQ阅读APP看书,第一时间看更新

Hadoop system user

Adding a Hadoop system user is not required, but it is recommended. It helps to assign different sets of privileges and the permission to separate the Hadoop installation from other applications running on the same server. Execute the following commands to add a group and a user:

$ sudo addgroup hadoop
$ sudo adduser --ingroup hadoop hduser

The system will ask you to create a password for the new user and some other information, such as Full Name, Phone Number, and so on. The output of the preceding command will be something similar to the screenshot that follows:

Figure-2.4.4

In our case, this is an optional step, as we are using a dedicated virtual machine for the purpose of running only Hadoop. So, adding a separate privileged group and user is not required.