Hi everyone After my several successful trials using typical KDD ID|S data and some others to learn how to run Random Forest, I have encountered following error for the different data. Not sure of the inconsistency in the "Number of Attributes" that is pointed. At least number of fields specified in "-d" matches with the actual in the CSV (15 fields) .
Please let me be advised on where to check. [hadoop@localhost JATMA]$ $HADOOP_HOME/bin/hadoop jar $MAHOUT_HOME/mahout-core-0.7-job.jar org.apache.mahout.classifier.df.tools.Describe -p JATMA/JATMATrain.csv -f JATMA/JATMATrain.info -d 5 C N 2 C 3 N 3 C L -r 13/12/16 16:15:00 INFO tools.Describe: Generating the descriptor... 13/12/16 16:15:01 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:88) 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) 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) [hadoop@localhost JATMA]$ Y.Mandai
