[ http://issues.apache.org/jira/browse/HADOOP-25?page=all ]
Owen O'Malley updated HADOOP-25:
--------------------------------
Attachment: examples-2.patch
Ok, here is a new patch.
I added the generic "jar" option to bin/hadoop.
To get it to work right, I couldn't use the -jar option to java because it
ignores the -cp option, so I implemented a utility function that looks in a jar
file to find the Main-Class attribute.
(org.apache.hadoop.util.PrintJarMainClass)
I moved the examples to org.apache.hadoop.examples.
I created a example driver that you can give either 'wordcount' or 'grep' to
run the appropriate class and made it the Main-Class of the example jar file.
I made the map and reduce arguments optional to WordCount. (I thought about
using jakarta-common-cli, but it just cluttered up the example.)
I changed the Map class to MapClass so that it didn't conflict with
java.utils.Map and put in a javadoc.
I pulled the examples out of the compile and jar targets and added it to the
test target.
> a new map/reduce example and moving the examples from src/java to src/examples
> ------------------------------------------------------------------------------
>
> Key: HADOOP-25
> URL: http://issues.apache.org/jira/browse/HADOOP-25
> Project: Hadoop
> Type: Improvement
> Components: mapred
> Reporter: Owen O'Malley
> Priority: Minor
> Attachments: examples-2.patch, examples.patch
>
> The new example is the word count example from Google's paper. I moved the
> examples into a separate jar file to demonstrate how to run stand-alone
> application code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira