You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Suneel Marthi (JIRA)" <ji...@apache.org> on 2013/07/25 14:35:51 UTC
[jira] [Updated] (MAHOUT-1061) mapreduce split causes ClassNotFound
exception
[ https://issues.apache.org/jira/browse/MAHOUT-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suneel Marthi updated MAHOUT-1061:
----------------------------------
Fix Version/s: 0.8
> 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
> Fix For: 0.8
>
>
> 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