Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Any pointers - java.lang.NoClassDefFoundError: org/kitesdk/morphline/solr/DocumentLoader

Highlighted

Any pointers - java.lang.NoClassDefFoundError: org/kitesdk/morphline/solr/DocumentLoader

New Contributor

I am using CDH 5.1, and trying to run the solr map reduce job.

 

I get java.lang.NoClassDefFoundError: org/kitesdk/morphline/solr/DocumentLoader

 

[hivedata@cluster1-srv7 ~]$ hadoop --config /etc/hadoop/conf.cloudera.mapreduce jar /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/solr/contrib/mr/search-mr-1.0.0-cdh5.1.0.jar org.apache.solr.hadoop.MapReduceIndexerTool -D ‘mapred.child.java.opts=-Xmx2048’ —log4j /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/share/doc/search-1.0.0+cdh5.1.0+0/examples/solr-nrt/log4j.properties --morphline-file readWebProxyMefAvroOutput.conf --output-dir hdfs://hivecluster2:8020/e8/prod/web_proxy_mef/search_output --verbose --go-live --zk-host 10.10.30.51:2181/solr,10.10.30.52:2181/solr,10.10.30.53:2181/solr,10.10.30.54:2181/solr,10:10:10:55:2181/solr —collection web_proxy_mef hdfs://10.10.30.51:8020/e8/prod/web_proxy_mef/2014/07/01/00
Exception in thread "main" java.lang.NoClassDefFoundError: org/kitesdk/morphline/solr/DocumentLoader
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at org.apache.hadoop.util.RunJar.main(RunJar.java:205)
Caused by: java.lang.ClassNotFoundException: org.kitesdk.morphline.solr.DocumentLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
[hivedata@cluster1-srv7 ~]$

 

Any pointers on how to fix this -

 

1. Location of the correct jars that needs to be included in classpath.

 

2. Even when I add -classpath=/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/kite/* 

 

I get java.lang.ClassNotFoundException: net.sourceforge.argparse4j.inf.ArgumentParserException

 

Mahendra