Ubuntu Install hadoop2.x (pseudo-distributed)

Source: Internet
Author: User

Next: Ubuntu installation hadoop1.x (pseudo-distributed)

1.x and 2.x in the installation of small differences, is the program directory is not the same.

hadoop1.x and 2.x part correspondence relationship

 
1.x 2.x
Core-site.xml ${hadoop_home}/conf/core-site.xml ${hadoop_home}/etc/hadoop/core-site.xml
Hdfs-site.xml ${hadoop_home}/conf/hdfs-site.xml ${hadoop_home}/etc/hadoop/hdfs-site.xml
Namenode format ${hadoop_home}/bin/hadoop Namenode-format ${hadoop_home}/bin/hdfs Namenode-format
start-dfs.sh ${hadoop_home}/bin/start-dfs.sh ${hadoop_home}/sbin/start-dfs.sh
stop-dfs.sh ${hadoop_home}/bin/stop-dfs.sh ${hadoop_home}/sbin/star-dfs.sh
Example.jar ${hadoop_home}/hadoop-examples-1.x.x.jar ${hadoop_home}/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.x.x.jar
WordCount

$ cd ${hadoop_home}

$ bin/hadoop jar Hadoop-examples-1.2.1.jar wordcount Input Output

$ cd ${hadoop_home}

$ bin/hadoop jar Share/hadoop/mapreduce/hadoop-mapreduce-examples-2.x.x.jar Org.apache.hadoop.examples.WordCount Input Output

Mapreduce Pending additions Pending additions
Other Pending additions Pending additions

Note

2.x after the installation is complete, the DFS command is reported as a warn

15/04/24 15:35:53 WARN util. nativecodeloader:unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicable
This does not affect. There are also specific solutions on the Web.

Ubuntu Install hadoop2.x (pseudo-distributed)

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.