Return-Path: Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: (qmail 731 invoked from network); 23 Jun 2010 00:01:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jun 2010 00:01:18 -0000 Received: (qmail 8132 invoked by uid 500); 23 Jun 2010 00:01:18 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 8085 invoked by uid 500); 23 Jun 2010 00:01:17 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 7973 invoked by uid 99); 23 Jun 2010 00:01:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 00:01:17 +0000 X-ASF-Spam-Status: No, hits=-1538.1 required=10.0 tests=ALL_TRUSTED,AWL 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, 23 Jun 2010 00:01:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5N00uZC023945 for ; Wed, 23 Jun 2010 00:00:56 GMT Message-ID: <15240961.4441277251256244.JavaMail.jira@thor> Date: Tue, 22 Jun 2010 20:00:56 -0400 (EDT) From: "Peter Goldstein (JIRA)" To: dev@mahout.apache.org Subject: [jira] Created: (MAHOUT-426) The Mahout command script doesn't properly run when Hadoop is installed but $MAHOUT_JOB is not set or found in standard locations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 The Mahout command script doesn't properly run when Hadoop is installed but $MAHOUT_JOB is not set or found in standard locations --------------------------------------------------------------------------------------------------------------------------------- Key: MAHOUT-426 URL: https://issues.apache.org/jira/browse/MAHOUT-426 Project: Mahout Issue Type: Bug Affects Versions: 0.4 Environment: Manifested in Amazon EC2 instance set up according to wiki instructions - https://cwiki.apache.org/MAHOUT/mahoutec2.html Seems likely to affect any server where Hadoop is installed Reporter: Peter Goldstein In the case where no $MAHOUT_JOB is set, and no mahout-examples-*.job file is found in the standard locations, the Mahout command script should default to the run locally option. Instead, when the script is run one received an error that the non-existent file "$MAHOUT_HOME/mahout-examples-*.job" cannot be found. This is the result of two separate bugs in the Mahout command script: i) There is no existence check in the loop checking for mahout-examples-*.job files in $MAHOUT_HOME ii) The execution if/else clause only checks if either $HADOOP_CONF_DIR or $HADOOP_HOME is empty when determining whether to run locally. It also should check the $MAHOUT_JOB variable, as it is meaningless to run hadoop in this case. Fixing these two issues allowed me to (almost) run the $MAHOUT_HOME/examples/bin/build-reuters.sh script. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.