[ 
https://issues.apache.org/jira/browse/MAHOUT-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13689428#comment-13689428
 ] 

vasu commented on MAHOUT-1134:
------------------------------

[~srowen]Can you please suggest how to rectify this error. After reading the 
post I could not find figure out how to rectify the error. I will be grateful 
if I can know the steps.

                
> 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 
>            Assignee: Sean Owen
>            Priority: Minor
>              Labels: mahout, script
>
> 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

Reply via email to