why is it not able to find org.apache.mahout.vectorizer.DefaultAnalyzer
any idea ?
n...@neil-laptop:~/trunk$ bin/mahout
org.apache.mahout.classifier.bayes.PrepareTwentyNewsgroups -p
examples/bin/work/20news-bydate/20news-bydate-train -o
examples/bin/work/20news-bydate/bayes-train-input -a
org.apache.mahout.vectorizer.DefaultAnalyzer -c UTF-8
Running on hadoop, using HADOOP_HOME=/home/neil/IIIT/hadoop-0.20.2
No HADOOP_CONF_DIR set, using /home/neil/IIIT/hadoop-0.20.2/conf
10/11/14 19:20:14 WARN conf.Configuration: DEPRECATED: hadoop-site.xml found
in the classpath. Usage of hadoop-site.xml is deprecated. Instead use
core-site.xml, mapred-site.xml and hdfs-site.xml to override properties of
core-default.xml, mapred-default.xml and hdfs-default.xml respectively
10/11/14 19:20:27 WARN driver.MahoutDriver: No
org.apache.mahout.classifier.bayes.PrepareTwentyNewsgroups.props found on
classpath, will use command-line arguments only
Exception in thread "main" java.lang.ClassNotFoundException:
org.apache.mahout.vectorizer.DefaultAnalyzer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.mahout.classifier.bayes.PrepareTwentyNewsgroups.main(PrepareTwentyNewsgroups.java:91)
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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:175)
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)
n...@neil-laptop:~/trunk$
--
Thanks and Regards
Neil
http://neilghosh.com