Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 82142 invoked from network); 29 Sep 2010 18:53:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 18:53:58 -0000 Received: (qmail 20801 invoked by uid 500); 29 Sep 2010 18:53:58 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 20771 invoked by uid 500); 29 Sep 2010 18:53:58 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 20763 invoked by uid 99); 29 Sep 2010 18:53:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 18:53:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 18:53:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8TIrXBT023688 for ; Wed, 29 Sep 2010 18:53:34 GMT Message-ID: <25445792.466281285786413612.JavaMail.jira@thor> Date: Wed, 29 Sep 2010 14:53:33 -0400 (EDT) From: "Mamen (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-806) WordCount example does not compile given the current instructions In-Reply-To: <41258993.1248594554796.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.