First, create Hadoop groups and Hadoop users under Ubuntu
Increase the Hadoop user group while adding Hadoop users to the group, and we'll use that user when it comes to Hadoop operations.
1. Create a Hadoop user group
2. Create a Hadoop user
sudo adduser-ingroup Hadoop Hadoop
You will be prompted to enter a new UNIX password, which is the password for the new user Hadoop, enter the return.
If you do not enter a password, you will be prompted to enter the password again, that is, the password cannot be empty.
Finally confirm the information is correct, if no problem, enter Y, carriage return.
3. Add Permissions for Hadoop users
Input: sudo gedit/etc/sudoers
Enter, open the Sudoers file
Give the Hadoop user the same permissions as the root user
Transferred from: http://www.cnblogs.com/kinglau/p/3794433.html
Ubuntu14.04 installation of Hadoop2.4.0 (standalone mode)