Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1134

mahout script does not convert path MAHOUT-JOB when run on Cygwin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 0.7
    • None
    • classic
    • Cygwin on win7

    Description

      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}

      1. 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)

      Attachments

        Activity

          People

            srowen Sean R. Owen
            huiwenhan Han Hui Wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: