mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From warren <wancheng.com...@gmail.com>
Subject Wrong number of attributes in the string
Date Tue, 14 Aug 2012 02:39:03 GMT
Hi all ,I'm a beginner.

when I try to run example : Partial Implementation

I got a error as fellow,Is there anyone encountered the same problem?

[warren@myhost ~]$ /opt/hadoop-1.0.0/bin/hadoop jar 
$MAHOUT_HOME/core/target/mahout-core-0.8-SNAPSHOT-job.jar 
org.apache.mahout.classifier.df.tools.Describe -p 
testdata/KDDTrain+.arff -f testdata/KDDTrain+.info -d N 3 C 2 N C 4 N C 
8 N 2 C 19 N L
Warning: $HADOOP_HOME is deprecated.

12/08/14 10:23:34 INFO tools.Describe: Generating the descriptor...
12/08/14 10:23:35 INFO tools.Describe: generating the dataset...
Exception in thread "main" java.lang.IllegalArgumentException: Wrong 
number of attributes in the string
     at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
     at 
org.apache.mahout.classifier.df.data.DataLoader.parseString(DataLoader.java:67)
     at 
org.apache.mahout.classifier.df.data.DataLoader.generateDataset(DataLoader.java:204)
     at 
org.apache.mahout.classifier.df.tools.Describe.generateDataset(Describe.java:127)
     at 
org.apache.mahout.classifier.df.tools.Describe.runTool(Describe.java:116)
     at 
org.apache.mahout.classifier.df.tools.Describe.main(Describe.java:101)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



Mime
View raw message