Run a Hadoop-0.19.0 instance on a Linux host

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.