We have some knowledge about Hadoop, especially the Analysis of Some of MapReduce source code yesterday, and we know how MapReduce works, I really want to install Hadoop On My Own (in fact, it's my own hand ...)? Today, we will install Hadoop without analyzing the source code (standalone cluster mode ). All of the following operations are completed in Ubuntu11.04. Before installation, add a user named hadoop to the system for Hadoop testing.
We have some knowledge about Hadoop, especially the Analysis of Some of MapReduce source code yesterday, and we know how MapReduce works, I really want to install Hadoop On My Own (in fact, it's my own hand ...)? Today, we will install Hadoop without analyzing the source code (standalone cluster mode ). All of the following operations are completed in Ubuntu 11.04.
Before installation, add a user named hadoop to the system for Hadoop testing.
~ $ Sudo addgroup hadoop
~ $ Sudo adduser -- ingroup hadoop
Now we only added a user hadoop, which does not have administrator permissions. Therefore, we need to add the user hadoop to the Administrator group:
~ $ Sudo usermod-aG admin hadoop
Now you can start to install :-)
1. Install ssh
Because Hadoop uses ssh for communication, as a secure communication protocol, a password is required for use, so we need to set it to password-free login (unless your hands are really itchy, every time you like to enter a password, one or two machines are fine. How about dozens or even hundreds of machines? Do you have no password to worry about security issues? Check openssh by yourself. Remember to understand the encryption algorithm in it .)
~ $ Sudo apt-get install openssh-server
Generate the private key and public key:
Hadoop@www.linuxidc.com :~ $ Ssh-keygen-t rsa-P ""