Mahout
  1. Mahout
  2. MAHOUT-428

KMeansDriver: No job jar file set leads to ClassNotFoundException: org.apache.mahout.clustering.kmeans.KMeansMapper

    Details

      Description

      Running the $MAHOUT_HOME/examples/bin/build-reuters.sh script I encountered the following exception:

      10/06/23 04:41:00 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
      10/06/23 04:41:01 INFO input.FileInputFormat: Total input paths to process : 1
      10/06/23 04:41:01 INFO mapred.JobClient: Running job: job_201006222301_0019
      10/06/23 04:41:02 INFO mapred.JobClient: map 0% reduce 0%
      10/06/23 04:41:11 INFO mapred.JobClient: Task Id : attempt_201006222301_0019_m_000000_0, Status : FAILED
      java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.mahout.clustering.kmeans.KMeansMapper
      at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:960)
      at org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:158)

      This appears to be identical in cause to MAHOUT-197 , and has an almost identical fix. Adding a job.setJarByClass(KMeansDriver.class) line to the KMeansDriver.java file fixes the issue.

      1. MAHOUT-428.patch
        0.6 kB
        Peter Goldstein

        Activity

        Sean Owen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Sean Owen made changes -
        Affects Version/s 0.3 [ 12314281 ]
        Affects Version/s 0.4 [ 12314396 ]
        Fix Version/s 0.4 [ 12314396 ]
        Ted Dunning made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Ted Dunning made changes -
        Assignee Ted Dunning [ tdunning ]
        Peter Goldstein made changes -
        Field Original Value New Value
        Attachment MAHOUT-428.patch [ 12447800 ]
        Peter Goldstein created issue -

          People

          • Assignee:
            Ted Dunning
            Reporter:
            Peter Goldstein
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development