Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 40076 invoked from network); 26 Jul 2009 07:48:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jul 2009 07:48:33 -0000 Received: (qmail 27634 invoked by uid 500); 26 Jul 2009 07:49:38 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 27591 invoked by uid 500); 26 Jul 2009 07:49:38 -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 27581 invoked by uid 99); 26 Jul 2009 07:49:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jul 2009 07:49:38 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jul 2009 07:49:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5E6F234C004 for ; Sun, 26 Jul 2009 00:49:14 -0700 (PDT) Message-ID: <41258993.1248594554796.JavaMail.jira@brutus> Date: Sun, 26 Jul 2009 00:49:14 -0700 (PDT) From: "Hector Yuen (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-806) WordCount example does not compile given the current instructions 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 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 Fix For: 0.20.1 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.