I resolved, because of my carelessness, I did not follow the document to delete the line that begins with @

On 2012年08月14日 10:44, chyi-kwei yau wrote:
Hi,
I met this problem before.
You need to check your input data format is the same as you describe in
"-d N 3 C 2 N C 4 N C 8 N 2 C 19 N L"

Best,
Chyi-Kwei Yau

On Mon, Aug 13, 2012 at 10:39 PM, warren <[email protected]> wrote:
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)



Reply via email to