Hi there,
As a practice for MapReduce programming, I tried implementing Max Temperature problem as discussed in the class. The problem statement is reduce the data to max temperature for a state for a particular day. I have successfully implemented the solution.
The problem is that I couldn’t able to run my solution with the following command
hadoop jar build/jar/hdpexamples.jar com.cloudxlab.**<myproject>**.StubDriver
Well, I was able to run the project by changing the build.xml as follows:
The existing entry:
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/hdpexamples.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="com.cloudxlab.**wordcount**.StubDriver"/>
</manifest>
</jar>
</target>
To:
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/hdpexamples.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="com.cloudxlab.**maxtemp**.StubDriver"/>
</manifest>
</jar>
</target>
The project ran successfully and produced the desired results. The only issue is that it can run the ‘maxtemp’ project but to run ‘wordcount’ again, I have to change the build.xml again and build the whole thing again in order to run.
What is the solution so that the both program can run without the need of re-compilation.
The code for maxtemp can be found here.
P.s.
Thanks
Noor