mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Ghosh <neil.gh...@gmail.com>
Subject Error while running twenty news example
Date Sun, 14 Nov 2010 13:58:51 GMT
why is it not able to find org.apache.mahout.vectorizer.DefaultAnalyzer

any idea ?


neil@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)
neil@neil-laptop:~/trunk$

-- 
Thanks and Regards
Neil
http://neilghosh.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message