[ 
https://issues.apache.org/jira/browse/MAPREDUCE-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429987#comment-13429987
 ] 

sakurai commented on MAPREDUCE-806:
-----------------------------------

i came across here as i happened to be facing the same problem.
everything goes well after i followed the instruction here(no errors after 
this), but i cant see any wordcount.jar created..

javac -classpath 
/home/hadoop/hadoop/hadoop-core-1.0.3.jar:/home/hadoop/hadoop/lib/commons-cli-1.2.jar
 -d classes src/WordCount.java

i only have the following classes created.
-rw-rw-r-- 1 hadoop hadoop 1790 Aug  7 15:42 WordCount$TokenizerMapper.class
-rw-rw-r-- 1 hadoop hadoop 1789 Aug  7 15:42 WordCount$IntSumReducer.class
-rw-rw-r-- 1 hadoop hadoop 1911 Aug  7 15:42 WordCount.class

sorry, i am not familiar with java, can someone tell me if my compiling is 
correct?

thank you.

                
> WordCount example does not compile given the current instructions
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-806
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-806
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 0.20.1
>         Environment: linux
>            Reporter: Hector Yuen
>            Priority: Trivial
>
> http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Example%3A+WordCount+v1.0
> In this example, the classpath is missing commons-cli-2.0-SNAPSHOT.jar
> If we compile according to the instructions:
> $ javac -classpath /hadoop/core/hadoop-0.20.0-core.jar -d ioperf_classes/ 
> src/WordCount.java
> src/WordCount.java:54: cannot access org.apache.commons.cli.Options
> class file for org.apache.commons.cli.Options not found
>     String[] otherArgs = new GenericOptionsParser(conf, 
> args).getRemainingArgs();
> The correct compilation should be 
> $ javac -classpath 
> /hadoop/core/hadoop-0.20.0-core.jar:/hadoop/core/lib/commons-cli-2.0-SNAPSHOT.jar
>  -d ioperf_classes/ src/WordCount.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to