Using the Hadoop management interface to analyze Map-reduce jobs

Source: Internet
Author: User
Tags command line

If we just ran a Hadoop job in the IDE, the job would not be running in the Hadoop admin interface, but if we were to run the job on the server, the operation would be displayed in the admin interface.

Or the last analysis of the highest temperature map-reduce as an example, the source code can see http://supercharles888.blog.51cto.com/609344/878422 this blog content. We package it into a jar package and upload it to the/home/hadoop-user/hadoop-0.20.2/charlestest directory:

We execute the job defined in the Maxtemperature class on the command line:

Hadoop jar Parseweatherfile.jar com.charles.parseweather.MaxTemperature input/1901.txt output-001

Here we execute the entry for the Maxtemperature class in the Weatherfile jar package, and the last 2 parameters are the input file location and output directory:

Run the results as shown in figure:

Now we can go to the console to see the whole process:

Let's go to http://192.168.129.35:50030/jobtracker.jsp to see the map-reduce process.

In the completed Job section, we saw the job that was just running:

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.