I countered a error when I run kmeans in Mahout.

The ClusterPoints output of kemeans are
......
Key: /reut2-012.sgm-116.txt: Value: 11908
Key: /reut2-012.sgm-117.txt: Value: 11905
Key: /reut2-012.sgm-118.txt: Value: 12479
Key: /reut2-012.sgm-119.txt: Value: 11908
Key: /reut2-012.sgm-12.txt: Value: 12576
Key: /reut2-012.sgm-120.txt: Value: 11643
Key: /reut2-012.sgm-121.txt: Value: 11905
......

I want to see the output.
After I run the examples of reuters21758 using command of kmeans,I did not
get the output using clusterdump. The command i run is below:
bin/mahout clusterdump -s /user/newExamples/reuters-kmeans/clusters-19 -p
/user/newExamples/reuters-kmeans/points -b 0  -j -d
/user/newExamples/reuters21758-sgm-out-seqdir-sparse/dictionary.file-0 -dt
sequencefile -n 8
running on hadoop, using HADOOP_HOME=/root/software/hadoop-0.20.2 and
HADOOP_CONF_DIR=/root/software/hadoop-0.20.2/conf
10/08/25 12:58:01 ERROR driver.MahoutDriver: MahoutDriver failed with args:
[-s, /user/newExamples/reuters-kmeans/clusters-19, -p,
/user/newExamples/reuters-kmeans/points, -b, 0, -j, -d,
/user/newExamples/reuters21758-sgm-out-seqdir-sparse/dictionary.file-0, -dt,
sequencefile, -n, 8, null]
null
Exception in thread "main" java.lang.NullPointerException
       at
org.apache.mahout.utils.clustering.ClusterDumper.readPoints(ClusterDumper.java:323)
       at
org.apache.mahout.utils.clustering.ClusterDumper.init(ClusterDumper.java:85)
       at
org.apache.mahout.utils.clustering.ClusterDumper.<init>(ClusterDumper.java:78)
       at
org.apache.mahout.utils.clustering.ClusterDumper.main(ClusterDumper.java:276)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       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:172)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Thank you!

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Why-My-clusterdump-does-not-run-successfully-tp1379022p1379022.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Reply via email to