You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Joe Prasanna Kumar (Updated) (JIRA)" <ji...@apache.org> on 2012/02/11 23:58:59 UTC

[jira] [Updated] (MAHOUT-784) Exception at 20 Newsgroups examples

     [ https://issues.apache.org/jira/browse/MAHOUT-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Prasanna Kumar updated MAHOUT-784:
--------------------------------------

    Attachment: MAHOUT-784-unformatted.patch

Lance, I am attaching the patch with no formatting. I still see a lot of diff when using the latest formatter xml referenced in our wiki. maybe after you review the code, it shud be formatted before committing ?
                
> Exception at 20 Newsgroups examples
> -----------------------------------
>
>                 Key: MAHOUT-784
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-784
>             Project: Mahout
>          Issue Type: Bug
>          Components: Classification
>         Environment: Ubuntu 11.04 / Hadoop 0.20.2 / Maven 3.0.3 / mahout-distribution-0.5 
>            Reporter: patrick.J
>            Assignee: Sean Owen
>             Fix For: 0.7
>
>         Attachments: MAHOUT-784-unformatted.patch, MAHOUT-784.patch, MAHOUT-784.patch
>
>
> somebody may help,
>    I run"Twenty Newsgroups Classification Example"(from https://cwiki.apache.org/confluence/display/MAHOUT/Twenty+Newsgroups) step by step.And the Environment variables(HADOOP_HOME,MAHOUT_HOME,HADOOP_CONF_DIR) all set in ~/.bashrc.
>    But when I going the step train the classifier on Hadoop, Exception was cast like:
> $> $MAHOUT_HOME/bin/mahout trainclassifier   -i 20news-input/bayes-train-input   -o newsmodel   -type bayes   -ng 3   -source hdfs:
> 11/08/13 09:37:54 INFO mapred.JobClient:  map 0% reduce 0%
> 11/08/13 09:38:04 INFO mapred.JobClient: Task Id : attempt_201108130934_0001_m_000000_0, Status : FAILED
> java.lang.RuntimeException: Error in configuring object
> 	at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93)
> 	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
> 	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
> 	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:354)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:170)
> Caused by: java.lang.reflect.InvocationTargetException
> 	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.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
> 	... 5 more
> Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/analysis/TokenStream
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:247)
> 	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:762)
> 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:807)
> 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:833)
> 	at org.apache.hadoop.mapred.JobConf.getMapperClass(JobConf.java:772)
> 	at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
> 	... 10 more
> Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.TokenStream
> 	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:306)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	... 17 more
>    What happened? I just walked through the tutorials.......
>   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira