When we use the Linux Ubuntu system as the OS of the Hadoop node, we need to do some configuration on the Ubuntu OS. PS. (the following only operate in ubuntu14.04, other versions may differ)
Installation using tools:
sudo Install Vim sudo Install git sudo Install Subversion ...
Common configuration:
1. Add users (nave) and group (Hadoop)
sudo --ingroup Hadoop Nave
2, add permissions to nave users, open the/etc/sudoers file:
sudo vim/etc/sudoers
Pressing ENTER will open the/etc/sudoers file, giving the Hadoop user the same permissions as the root user.
Add Nave all= (All:all) all under root all= (All:all) all
1 root all=(all:all) all2 nave all= (all:all) all
3, modify the hostname
sudo vim/etc/hostname
PS. After logoff or restart takes effect
4. Modify the Hosts file
sudo vim/etc/hosts
The reference links are as follows:
Http://os.51cto.com/art/201211/364167.htm
Hadoop ubuntu Configuration Synthesis