Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Re: Hadoop on Tomcat issue ??


Copy link to this message
-
Re: Hadoop on Tomcat issue ??
if u r tomcat is on remote linux  make sure u give path names of u r hadoop
jars at common.loader=  in catalina.properties file,
also make sure all hadoop jars are present in web-inf/lib    folder of u r
webapps inside u r project folder structure also make sure that u have jars
of the same version of hadoop tht u have installed or using....

On Fri, Nov 23, 2012 at 4:24 PM, praveenesh kumar <[EMAIL PROTECTED]>wrote:

> Hello users,
>
> I am trying to create a Hadoop WAR file, which will be deployed on Tomcat.
> My code as a JAR is running perfectly fine. But when I am deploying as WAR
> on tomcat, I am getting the following issue. From the logs, its saying
> couldn't find my Map and Reduce class, but I already made a JAR of my code
> and put it inside WEB-INF/lib folder. All hadoop jars also present at
> WEB-INF/lib folder. Can someone let me know what could be the issue :
>
> 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:387)
>
>                at org.apache.hadoop.mapred.MapTask.run(MapTask.java:325)
>
>                at org.apache.hadoop.mapred.Child$4.run(Child.java:270)
>
>                at java.security.AccessController.doPrivileged(Native
> Method)
>
>                at javax.security.auth.Subject.doAs(Subject.java:396)
>
>                at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157)
>
>                at org.apache.hadoop.mapred.Child.main(Child.java:264)
>
> 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)
>
>                ... 9 more
>
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.ClassNotFoundException: com.ta.wh.Map
>
>                at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1028)
>
>                at
> org.apache.hadoop.mapred.JobConf.getMapperClass(JobConf.java:968)
>
>                at
> org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
>
>                ... 14 more
>
> Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException:
> com.ta.wh.Map
>
>                at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:996)
>
>                at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1020)
>
>                ... 16 more
>
> Caused by: java.lang.ClassNotFoundException: com.ta.wh.Map
>
>                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)
>
>                at java.lang.Class.forName0(Native Method)
>
>                at java.lang.Class.forName(Class.java:247)
>
>                at
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:943)
>
>                at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:994)
>
>                ... 17 more
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB