hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-806) WordCount example does not compile given the current instructions
Date Wed, 29 Sep 2010 18:53:33 GMT

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

Mamen commented on MAPREDUCE-806:
---------------------------------

Hello
I have this problem but with hadoop-0.21.0 version. On this version, how is the correct compilation?
I search  commons-cli-2.0-SNAPSHOT.jar in this version but don't exist.
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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message