i ran k-means clustering a few days ago without any problems...did and svn update to get the latest trunk and now the same exact command that i ran before gives me this. InvocationTargetException..i don't remember adding any conflicts..what is even more puzzling is that Dirichlet Clustering runs just fine...
hadoop jar /mahout/core/target/mahout-core-0.4-SNAPSHOT.job org.apache.mahout.clustering.kmeans.KMeansDriver -i input-data-vectors/vectors/part-00000 -o input-data-kmeans-clusters -c clusters -m org.apache.mahout.common.distance.CosineDistanceMeasure -v org.apache.mahout.matrix.SparseVector -x 20 -d 0.5 -k 26 -w -r 8 10/05/06 01:59:55 WARN common.HadoopUtil: Deleting input-data-kmeans-clusters 10/05/06 01:59:55 WARN common.HadoopUtil: Creating dir input-data-kmeans-clusters 10/05/06 01:59:55 INFO util.NativeCodeLoader: Loaded the native-hadoop library 10/05/06 01:59:55 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library 10/05/06 01:59:55 INFO compress.CodecPool: Got brand-new compressor 10/05/06 01:59:58 INFO kmeans.RandomSeedGenerator: Wrote 26 vectors to clusters/part-randomSeed 10/05/06 01:59:58 INFO kmeans.KMeansDriver: Input: input-data-vectors/vectors/part-00000 Clusters In: clusters/part-randomSeed Out: input-data-kmeans-clusters Distance: org.apache.mahout.common.distance.CosineDistanceMeasure 10/05/06 01:59:58 INFO kmeans.KMeansDriver: convergence: 0.5 max Iterations: 20 num Reduce Tasks: 8 Input Vectors: org.apache.mahout.math.VectorWritable 10/05/06 01:59:58 INFO kmeans.KMeansDriver: Iteration 0 10/05/06 01:59:58 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. 10/05/06 01:59:59 INFO mapred.FileInputFormat: Total input paths to process : 1 10/05/06 01:59:59 INFO mapred.JobClient: Running job: job_201004230623_0119 10/05/06 02:00:00 INFO mapred.JobClient: map 0% reduce 0% 10/05/06 02:00:09 INFO mapred.JobClient: Task Id : attempt_201004230623_0119_m_000000_0, Status : FAILED java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:354) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) at org.apache.hadoop.mapred.Child.main(Child.java:170) Caused by: java.lang.reflect.InvocationTargetException 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.ReflectionUtils.setJobConf(ReflectionUtils.java:88) ... 5 more Caused by: java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34) ... 10 more Caused by: java.lang.reflect.InvocationTargetException 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.ReflectionUtils.setJobConf(ReflectionUtils.java:88) ... 13 more Caused by: java.lang.IllegalStateException: Cluster is empty! at org.apache.mahout.clustering.kmeans.KMeansMapper.configure(KMeansMapper.java:73) ... 18 more 10/05/06 02:00:11 INFO mapred.JobClient: Task Id : attempt_201004230623_0119_m_000001_0, Status : FAILED java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:354) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) at org.apache.hadoop.mapred.Child.main(Child.java:170) Caused by: java.lang.reflect.InvocationTargetException 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.ReflectionUtils.setJobConf(ReflectionUtils.java:88) ... 5 more Caused by: java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117) at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34) ... 10 more Caused by: java.lang.reflect.InvocationTargetException 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.ReflectionUtils.setJobConf(ReflectionUtils.java:88) ... 13 more Caused by: java.lang.IllegalStateException: Cluster is empty! at org.apache.mahout.clustering.kmeans.KMeansMapper.configure(KMeansMapper.java:73) ... 18 more ----- --cheers Delroy -- View this message in context: http://lucene.472066.n3.nabble.com/k-means-InvocationTargetException-tp780778p780778.html Sent from the Mahout User List mailing list archive at Nabble.com.