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: kmeans clustering error
Date Sun, 27 Oct 2013 02:59:18 GMT
Why not use the most recent version (0.8) of Mahout?



On Fri, Oct 25, 2013 at 11:32 AM, naveenkumar nookala <
mail2naveen.dwh@gmail.com> wrote:

> Hi All,
>
> I am using Mahout 0.7 and am trying to cluster a group of articles (all are
> txt files) using k-means clustering but i am getting an error as *Check
> your -c argument*.
> can someone help me out.
>
> Below are the steps i have executed :
>
> *step 1:* mahout seqdirectory -c UTF-8 -i examples/articles/ -o
> articles-seqfiles
>
> *step 2:* mahout seq2sparse -i articles-seqfiles/ -o articles-vectors -ow
>
> *step 3:* mahout kmeans -i articles-vectors/tfidf-
> vectors/ \
> -c articles-initial-clusters \
> -o articles-kmeans-clusters \
> -dm org.apache.mahout.common.distance.SquaredEuclideanDistanceMeasure \
> -cd 1.0 -k 4 -x 20 -cl
>
> *Error:*
>
> 13/10/24 14:55:35 INFO compress.CodecPool: Got brand-new decompressor
> Exception in thread "main" java.lang.
> IllegalStateException: No input clusters found in
> articles-initial-clusters/part-randomSeed. Check your -c argument.
>     at
>
> org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:218)
>     at
> org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:149)
>     at
> org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:108)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at
> org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:49)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
>
> org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>     at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>     at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
>
>
> Thanks,
> naveen
>

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