mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <>
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
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(
	at java.util.ArrayList.get(
	at org.apache.mahout.clustering.kmeans.RandomSeedGenerator.buildRandom(
	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.hadoop.util.RunJar.main(

View raw message