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

Hector Yee commented on MAHOUT-726:
-----------------------------------

Turns out to be user error, I was using the reuters-vectors directory instead 
of reuters-vectors/tfidf-vectors


> IntWritable / VectorWritable cast problem in classifier/clustering 
> implementations
> ----------------------------------------------------------------------------------
>
>                 Key: MAHOUT-726
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-726
>             Project: Mahout
>          Issue Type: Bug
>          Components: Classification, Clustering
>    Affects Versions: 0.5
>            Reporter: Sean Owen
>             Fix For: 0.6
>
>
> I think we've seen this sort of error, most recently reported by Hector:
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.hadoop.io.IntWritable cannot be cast to
> org.apache.mahout.math.VectorWritable
>  at
> org.apache.mahout.clustering.kmeans.RandomSeedGenerator.buildRandom(RandomSeedGenerator.java:90)
> at
> org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:102)
> Hector indicates it's also in LDA and Dirichlet, so probably a common issue 
> to all, though also I suspect an easy fix whatever it is.
> Tracking it formally with a JIRA to record the resolution.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to