You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Han Hui Wen (JIRA)" <ji...@apache.org> on 2012/12/31 11:58:12 UTC

[jira] [Created] (MAHOUT-1134) mahout script does not convert path MAHOUT-JOB when run on Cygwin

Han Hui Wen  created MAHOUT-1134:
------------------------------------

             Summary: mahout script does not convert path MAHOUT-JOB when run on Cygwin
                 Key: MAHOUT-1134
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1134
             Project: Mahout
          Issue Type: Bug
          Components: CLI
    Affects Versions: 0.7
         Environment: Cygwin on win7
            Reporter: Han Hui Wen 
            Priority: Blocker
             Fix For: 0.8


script :mahout
else
  echo "Running on hadoop, using $HADOOP_BINARY and HADOOP_CONF_DIR=$HADOOP_CONF_DIR"

  if [ "$MAHOUT_JOB" = "" ] ; then
    echo "ERROR: Could not find mahout-examples-*.job in $MAHOUT_HOME or $MAHOUT_HOME/examples/target, please run 'mvn install' to create the .job file"
    exit 1
  else
    case "$1" in
    (hadoop)
      shift
      export HADOOP_CLASSPATH=$MAHOUT_CONF_DIR:${HADOOP_CLASSPATH}:$CLASSPATH
      exec "$HADOOP_BINARY" "$@"
      ;;
    (classpath)
      echo $CLASSPATH
      ;;
    (*)
      echo "MAHOUT-JOB: $MAHOUT_JOB"
      export HADOOP_CLASSPATH=$MAHOUT_CONF_DIR:${HADOOP_CLASSPATH}
# we need convert $MAHOUT_JOB before it been passed to hadoop .
      exec "$HADOOP_BINARY" jar $MAHOUT_JOB $CLASS "$@"
    esac
  fi
fi


error message :

Exception in thread "main" java.io.IOException: Error opening job jar: /usr/local/mahout-distribution-0.7/mahout-example
s-0.7-job.jar
        at org.apache.hadoop.util.RunJar.main(RunJar.java:130)
Caused by: java.io.FileNotFoundException: \usr\local\mahout-distribution-0.7\mahout-examples-0.7-job.jar (The system can
not find the path specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:214)
        at java.util.zip.ZipFile.<init>(ZipFile.java:144)
        at java.util.jar.JarFile.<init>(JarFile.java:152)
        at java.util.jar.JarFile.<init>(JarFile.java:89)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:128)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira