Hadoop-0.19.0 code can be downloaded to Apache, the link is here, I use Linux machine is RHEL5, Linux installed Java version is 1.6.0 _ 16, and JAVA_HOME =/usr/java/jdk1.6.0 _ 16. Practice 1. ssh password-less authentication: log on to localhost to ensure that the ssh service in Linux has been started and that the local Linux system can be accessed through password-less authentication. If not, you can follow
Hadoop-0.19.0 code can be downloaded to Apache, the link is here, I use Linux machine is RHEL 5, Linux installed Java version is 1.6.0 _ 16, and JAVA_HOME =/usr/java/jdk1.6.0 _ 16.
Practice Process
1. log on to localhost through ssh without password verification
Ensure that the ssh service in Linux has been started, and that you can log on to the Linux system without a password. If not, follow these steps:
(1) Start the command line window and execute the command line:
$ Ssh-keygen-t dsa-p'-f ~ /. Ssh/id_dsa
$ Cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys
(2) log on to localhost through ssh and run the following command:
$ Ssh localhost
When you log on for the first time, you will be prompted that you cannot establish a connection to 127.0.0.1. If you want to establish a connection, enter "yes". The following is the login information that can be verified without a password:
[Root @ localhost hadoop-0.19.0] # ssh localhost
Last login: Sun Aug 1 18:35:37 2010 from 192.168.0.104
[Root @ localhost ~] #
2. Hadoop-0.19.0 Configuration
Download hadoop-0.19.0.tar.gz, which is about 40.3 M, decompress it to the directory specified by Linux, where my directory is/root/hadoop-0.19.0.
Follow the steps below to describe the configuration process:
(1) Modify hadoop-env.sh Configuration
After modifying the configuration of the Java environment, uncomment "#". The modified behavior is as follows:
Export JAVA_HOME =/usr/java/jdk1.6.0 _ 16
(2) Modify hadoop-site.xml Configuration
In And Add the configuration of three attributes. The modified configuration file is as follows:
Fs. default. name
Hdfs: // localhost: 9000
Mapred. job. tracker
Localhost: 9001
Dfs. replication
1