Install Hadoop in Ubuntu12.04. Read more: Install and deploy Openstackhttp: // container on Ubuntu12.10.
Install Hadoop in Ubuntu 12.04.
Related reading:
Install and deploy Openstack http://www.linuxidc.com/Linux/2013-08/88184.htm on Ubuntu 12.10
Ubuntu 12.04 OpenStack Swift single-node deployment manual http://www.linuxidc.com/Linux/2013-08/88182.htm
Installing the Swift component of OpenStack on Ubuntu-installing openstack object storage http://www.linuxidc.com/Linux/2013-08/88180.htm
OpenStack Hands on lab series http://www.linuxidc.com/Linux/2013-08/88170.htm
1. Create a hadoop user group and user a. Create a hadoop User Group
Sudo addgroup hadoop
sudo addgroup hadoop
B. Create a hadoop user
Sudo adduser-ingroup hadoop
sudo adduser –ingroup hadoop hadoop
C. Edit the/etc/sudoers file and add permissions to hadoop users.
Sudo vim/etc/sudoers
sudo vim /etc/sudoers
Grant the same root permission to hadoop users
Hadoop ALL = (ALL: ALL) ALL
hadoop ALL=(ALL:ALL) ALL
Note: The/etc/sudoers file may be a readonly file. After modification, use ": wq !" Save
2. Install JDK
JDK installation tutorials have a lot of online materials, so they are omitted.
Note: Do not install OpenJDK. Download JDK from the official Oracle website (Oracle JDK cannot be installed using apt-get install)
3. Install the ssh service
Sudo apt-get install openssh-server
sudo apt-get install openssh-server
4. Set ssh password-less Login
Run the su-command to switch to the hadoop user.
Su-hadoop
su – hadoop
Two ssh-generated keys are available: rsa and dsa. The rsa method is used by default.
A. Create an ssh-key (using rsa)
Ssh-keygen-t rsa-P ""
ssh-keygen -t rsa -P ""
B. Enter ~ In the/. ssh/directory, append id_rsa.pub to the authorized_keys authorization file.
- Cd ~ /. Ssh
- Cat id_rsa.pub> authorized_keys
cd ~/.sshcat id_rsa.pub >> authorized_keys
C. log on to localhost without a password
Ssh localhost
ssh localhost
D. Exit the ssh connection.
- Exit
exit
For more details, see the next page: http://www.linuxidc.com/Linux/2013-08/88187p2.htm