You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Jeff Eastman (JIRA)" <ji...@apache.org> on 2010/04/02 23:05:27 UTC

[jira] Commented: (MAHOUT-339) Class Cast Exception Running Synthetic Control MeanShift Clustering Job

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

Jeff Eastman commented on MAHOUT-339:
-------------------------------------

Problem with example was introduced by a recent change to the MeanShiftCanopyJob which added a preprocessing step to convert Vectors in the input directory to canopies. This preprocessing was already being done in the synthetic control job - which converts delimited text to canopies - so the canopies could not be cast to vectors in the clustering job. I've added an optional boolean inputIsClusters argument to the MeanShiftCanopyJob.runJob so that the redundant conversion can be omitted if a preprocessing step has already produced canopies. Running tests now. Will commit once they are done.

> Class Cast Exception Running Synthetic Control MeanShift Clustering Job
> -----------------------------------------------------------------------
>
>                 Key: MAHOUT-339
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-339
>             Project: Mahout
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 0.3
>            Reporter: Jeff Eastman
>            Priority: Critical
>             Fix For: 0.4
>
>
> Mar 17, 2010 2:15:00 PM org.apache.hadoop.mapred.LocalJobRunner$Job run
> WARNING: job_local_0002
> java.lang.ClassCastException: org.apache.mahout.clustering.meanshift.MeanShiftCanopy cannot be cast to org.apache.mahout.math.VectorWritable
> 	at org.apache.mahout.clustering.meanshift.MeanShiftCanopyCreatorMapper.map(MeanShiftCanopyCreatorMapper.java:1)
> 	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
> 	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
> 	at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.