mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: K means news clustering exception
Date Mon, 21 Mar 2011 19:49:20 GMT
It would not be very surprising to have k-means fail with only 4 documents.
 It shouldn't, but that is so far outside
the intended use case that it wouldn't be all that surprising.

On Mon, Mar 21, 2011 at 9:40 AM, sarath pr <sarath.amrita@gmail.com> wrote:

> Can anyone help me fixing the exception
>
> Exception in thread "main" java.lang.InterruptedException: K-Means
> Iteration failed processing newsClusters/canopy-centroids/clusters-0
>        at
> org.apache.mahout.clustering.kmeans.KMeansDriver.runIteration(KMeansDriver.java:342)
>        at
> org.apache.mahout.clustering.kmeans.KMeansDriver.buildClustersMR(KMeansDriver.java:289)
>        at
> org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:214)
>        at
> org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:143)
>        at newsclustering.main(newsclustering.java:69)
> Java Result: 1
>
>
> Instead of taking the data from database ,i just replaced the code
> like this for a test purpose. is there any problem ?
>
> writer.append(new Text("doc1"), new Text("sarath and sai"));
> writer.append(new Text("doc2"), new Text("sarath and vishnu"));
> writer.append(new Text("doc3"), new Text("sarath and manu"));
> writer.append(new Text("doc4"), new Text("manu and vishnu"));
>
>
> --
> Thank You..!!
> Sarath Ramachandran
> sarath.amrita@gmail.com
> +919995024287
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message