Friday 15 February 2013

hadoop - java.lang.ClassNotFoundException while running Breiman example in Mahout -


text after "itemprop =" text ">

I try to run the Breiman example of deciding for classification in a single system (pseudo-distributed mode) to build a forest I am doing. I have no problem in the first two phases have been discussed in the tutorial, but the third stage (which generate a file descriptor for the dataset '' are) going to throw an exception as shown below

  exception thread "main" java.lang.ClassNotFoundException: java.net.URLClassLoader $ 1.run (URLClassLoader.java:366) org.apache.mahout.classifier on java.net.URLClassLoader $ 1.run. df.tools.Describe (URLClassLoader java: 355) at java.security.AccessController.doPrivileged (Native method) java.net.URLClassLoader.findClass (URLClassLoader.java:354) on java.lang.ClassLoader.loadClass (ClassLoader.j Ava: 423) on Java at. lang.ClassLoader.loadClass java.lang.Class.forName0 (ClassLoader.java:356) (Native Method) java.lang.Class.forName (Class.java:266) on org.apache.hadoop.util.RunJar . Main (RunJar.java:149)   

command I ran

  hadoop_admin @ ubuntu: ~ / Hadoop $ bin / Hadoop jar / home / viggi /vrkspes/mhowt-distrybusn-0k5/mhowt-kor-0k5-jobkjar Orgkapachekmhowtkclosifie Rkdfktulskdeskribe -p Dtl0 / Gilaskdeta -f Dtl0 / Gilaskinfo D A9 NL   

I got a post in the stack overflow with similar exceptions, although it does not relate to its mahav or the Bremen example, I have decided to go with the suggested solution which is the Download HttpClient jar-library and put it in $ MAHOUT_HOME / lib Land. It was not working, so if someone can explain what the third step really does and to get rid of those exceptions, it will really be helpful.

As far as I can see, Mahatat 0.5 org.apache.mahout.classifier.df .tools.Describe class, which is why you are not getting the exception, it can not get it.

There is a square of 0.6 in Mahuash. I suggest you upgrade to the latest stable version of Mahat (0.7)

No comments:

Post a Comment