mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Array out of bounds in the KMeans driver
Date Sat, 19 Dec 2009 22:07:14 GMT
../hadoop-0.20.1/bin/hadoop jar
examples/target/mahout-examples-0.3-SNAPSHOT.job
org.apache.mahout.clustering.kmeans.KMeansDriver  --input
testdata/he_mahout_vector -c clusters -o output -m
org.apache.mahout.common.distance.ManhattanDistanceMeasure -k 7


09/12/19 17:02:18 WARN util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes
where applicable
09/12/19 17:02:18 INFO compress.CodecPool: Got brand-new decompressor
09/12/19 17:02:18 INFO compress.CodecPool: Got brand-new compressor
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index:
0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.apache.mahout.clustering.kmeans.RandomSeedGenerator.buildRandom(RandomSeedGenerator.java:94)
	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:158)
	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)

Mime
View raw message