mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Tejera <diegotej...@gmail.com>
Subject Re: 20news example problem
Date Sat, 12 Feb 2011 17:27:02 GMT
Ted, Thanks for responding

On Thu, Feb 10, 2011 at 11:24 AM, Ted Dunning <ted.dunning@gmail.com> wrote:

> Diego,
>
> What platform are you on?
>
Ubuntu 10.10 64bit

Have you set your classpath explicitly?
>

"set CLASSPATH=/home/diego/tesis/mahout03/core/target/classes/"

 How did you install mahout?  By compiling it?

yes, i compiled mahout


Thanks a lot



> On Thu, Feb 10, 2011 at 2:49 AM, Diego Tejera <diegotejera@gmail.com>wrote:
>
>> Hello everyone I am new to mahout, I am planning to use it for my
>> undergraduate thesis, the thing is that when I try to run the 20news
>> example
>> i get the follow error: and also it says that  my HADOOP_HOME is not set
>> but
>> I do have it, and I already compiled and installed the core and the
>> examples
>>
>> $MAHOUT_HOME/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
>> no HADOOP_CONF_DIR or HADOOP_HOME set, running locally
>> Feb 10, 2011 5:38:51 AM org.slf4j.impl.JCLLoggerAdapter warn
>> WARNING: No
>> org.apache.mahout.classifier.bayes.PrepareTwentyNewsgroups.props
>> found on classpath, will use command-line arguments only
>> Feb 10, 2011 5:38:51 AM org.slf4j.impl.JCLLoggerAdapter error
>> SEVERE: MahoutDriver failed with args: [-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, null]
>> org.apache.mahout.vectorizer.DefaultAnalyzer
>> 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>  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:87)
>>  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:172)
>>
>> Thanks a lot,
>> --
>> Diego Tejera
>> http://diegotejera.org
>>
>
>


-- 
Diego Tejera
http://diegotejera.org

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