Pre-order: Because in the widow with the Eclipse hadoop2.2.0 running program is not successful, temporary solution on the Internet, the compromise of the next, connected hadoop1.0.3 pseudo-distributed
One. Use of the environment and tools
1.Eclipse is Indio version, this can be downloaded by the official website
2.Eclipse Hadoop plugin: Hadoop-eclipse-plugin-1.0.3.jar,
: http://download.csdn.net/detail/lifuxiangcaohui/7963261
Two. Installing hadoop1.0.3 pseudo-distributed
1. Install SSH free Login
Install JDK and so on: View my early installation hadoop2.20 notes (both run successfully): http://blog.csdn.net/lifuxiangcaohui/article/details/21635791
2. Configure the appropriate configuration file for hadoop1.0.3:
2.1 Modifying the Hadoop core profile core-site.xml, configuring the address and port number for HDFs
VI Conf/core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
2.2 Modifying the configuration of HDFs in Hadoop, modifying replication
VI Conf/hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
2.3 Modify the configuration file for MapReduce in Hadoop, configure the address and port of Jobtracker
VI Conf/mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
</configuration>
3 format Hadoop file system HDFs
Bin/hadoop Namenode-format
4. Start Hadoop
bin/start-all.sh
5. Finally, verify that Hadoop is installed successfully. Open the browser and enter the URL separately:
http://localhost:50030 (Web page for MapReduce)
http://localhost:50070 (HDFS Web page)
If you can view it, the installation is successful.
Three. Configure local Eclipse
Can see I reproduced a super-detailed article: http://blog.csdn.net/lifuxiangcaohui/article/details/39500131
Due to the limited time, write the article some rough and lazy, please understand
Window under Eclipse Configure hadoop1.0.3 cluster