mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Schelter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MAHOUT-1061) mapreduce split causes ClassNotFound exception
Date Mon, 11 Mar 2013 12:37:15 GMT

     [ https://issues.apache.org/jira/browse/MAHOUT-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebastian Schelter resolved MAHOUT-1061.
----------------------------------------

    Resolution: Fixed
      Assignee: Sebastian Schelter

thank you very much for your contribution!
                
> mapreduce split causes ClassNotFound exception
> ----------------------------------------------
>
>                 Key: MAHOUT-1061
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1061
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.7
>            Reporter: David Engel
>            Assignee: Sebastian Schelter
>              Labels: patch
>
> Running the split program in mapreduce mode, e.g. "mahout split -xm mapreduce ..." results
in a ClassNotFound exception because the job jar is not set.  The following patch fixes the
problem for me.
> diff -ur mahout-distribution-0.7.orig/integration/src/main/java/org/apache/mahout/utils/SplitInputJob.java
mahout-distribution-0.7/integration/src/main/java/org/apache/mahout/utils/SplitInputJob.java
> --- mahout-distribution-0.7.orig/integration/src/main/java/org/apache/mahout/utils/SplitInputJob.java
2012-06-12 03:30:39.000000000 -0500
> +++ mahout-distribution-0.7/integration/src/main/java/org/apache/mahout/utils/SplitInputJob.java
2012-08-20 17:28:18.000000000 -0500
> @@ -114,6 +114,6 @@
>  
>      // Setup job with new API
>      Job job = new Job(oldApiJob);
> +    job.setJarByClass(SplitInputJob.class);
>      FileInputFormat.addInputPath(job, inputPath);
>      FileOutputFormat.setOutputPath(job, outputPath);
>      job.setNumReduceTasks(1);

--
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

Mime
View raw message