The difference between "run on Hadoop" in "Hadoop" Eclipse and packaged as a Jar submission task

Source: Internet
Author: User

The debug run in Eclipse and "run on Hadoop" are only run on a single machine by default, because in order to let the program distributed running in the cluster also undergoes the process of uploading the class file, distributing it to each node, etc.

A simple "run on Hadoop" just launches the local Hadoop class library to run your program,

No job information is visible on the Hadoop Cluster Web Management page (Http://192.168.2.2:8088/cluster/apps) because your job is not running on the cluster at all.

Package as a Jar method:

RM tmp/*

CP xmlparser_hadoop* tmp/

JAR-CVF xmlparser_hadoop.jar-c tmp/.

How to run:

hadoop:/usr/local/hadoop-2.6.0$ bin/hadoop jar Xmlparser_hadoop.jar Xmlparser_hadoop hdfs://192.168.2.2:9000/user/ Input Hdfs://192.168.2.2:9000/user/output/xmlparser

Appendix:

How to make your job truly distributed in a Hadoop cluster

Http://www.cnblogs.com/beanmoon/archive/2013/05/09/3068729.html

The difference between "run on Hadoop" in "Hadoop" Eclipse and packaged as a Jar submission task

Related Article

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.