[Hadoop Series] Installation of Hadoop-2. Pseudo distribution Mode

Source: Internet
Author: User
Tags ssh

Inkfish original, do not reprint commercial nature, reproduced please indicate the source (http://blog.csdn.net/inkfish).

Hadoop is an open source cloud computing platform project under the Apache Foundation. Currently the latest version is Hadoop 0.20.1. The following is a blueprint for Hadoop 0.20.1, which describes how to install Hadoop under Ubuntu Linux 9.10. (Source: Http://blog.csdn.net/inkfish)

Supported Platforms: (Source: Http://blog.csdn.net/inkfish)
Linux can be used as a platform for development and product deployment;
Windows, which can be used as a development platform.

Pre-Required Software: (Source: Http://blog.csdn.net/inkfish)
1.javatm1.6.x, must be installed, recommended to choose the Java version issued by Sun Company;
2.ssh must be installed and guaranteed to run SSHD, Hadoop will communicate with SSH;
3. If it is windows, you need to install Cygwin to support shell commands.

Install the available modes: (Source: Http://blog.csdn.net/inkfish)
1. Local mode;
2. pseudo distribution mode;
3. Full distribution mode.

Pseudo Distribution mode installation steps:

1. Unzip the Hadoop installation package to a directory;
2. Modify conf/hadoop-env.sh file, export java_home= the line set the correct java_home location
3. Revise the conf/core-site.xml to read:
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost :9000</value> </property> </configuration>
4. Revise the conf/hdfs-site.xml to read:
<configuration> <property> <name>dfs.replication</name> <value>1</value> </ Property> </configuration>
5. Revise the conf/mapred-site.xml to read:
<configuration> <property> <name>mapred.job.tracker</name> <value>localhost:9001 </value> </property> </configuration>
6. Set the native SSH computer without password
First Test, enter the command ssh localhost, if prompted password, you need to do the following:
$ ssh-keygen-t dsa-p '-F ~/.SSH/ID_DSA
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
7. Format Namenode:
$ bin/hadoop Namenode-format

8. Start Hadoop:

$ bin/start-all.sh


At this point, the Hadoop pseudo distribution mode is installed.

(Source: Http://blog.csdn.net/inkfish)

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.