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: