hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohith Sharma K S (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-8383) TimelineServer 1.5 start fails with NoClassDefFoundError
Date Fri, 01 Jun 2018 03:27:00 GMT

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

Rohith Sharma K S updated YARN-8383:
------------------------------------
    Target Version/s: 2.8.5

I see this behavior only 2.8.4 but not in 2.9.x release line. It occurs every time, just download
2.8.4 and configure 1.5 properties. 

JsonFactory file is from jackson-core-x.x.x.jar. In hadoop-2.8.4, this jar not found. But
in hadoop-2.9.x, I see this jar available in hdfs lib.

*In hadoop-2.8.4:* Though tools/lib has jackson-core-2.2.3.jar, this won't be loaded for daemon
start.
{code:java}
HW12723:hadoop-2.8.4 rsharmaks$ find ./ -iname "jackson-core-*.jar"
.//share/hadoop/common/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/tools/lib/jackson-core-2.2.3.jar
.//share/hadoop/tools/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar
{code}
*In hadoop-2.9.x :* Observer that jackson-core-2.7.8.jar is there in hdfs/lib which will be
loaded for timelineserver. Though tools/lib has this jar, this won't be loaded for daemon
start. 
{code:java}
HW12723:hadoop-2.9.0 rsharmaks$ find ./ -iname "jackson-core-*.jar"
.//share/hadoop/common/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/hdfs/lib/jackson-core-2.7.8.jar
.//share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jackson-core-2.7.8.jar
.//share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/tools/lib/jackson-core-2.7.8.jar
.//share/hadoop/tools/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar

HW12723:hadoop-2.9.0 rsharmaks$ cd ../hadoop-2.9.1
HW12723:hadoop-2.9.1 rsharmaks$ find ./ -iname "jackson-core-*.jar"
.//share/hadoop/common/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/hdfs/lib/jackson-core-2.7.8.jar
.//share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jackson-core-2.7.8.jar
.//share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/tools/lib/jackson-core-2.7.8.jar
.//share/hadoop/tools/lib/jackson-core-asl-1.9.13.jar
.//share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar
{code}

I couldn't get 2.8.3 release artifact to verify it. 
cc :/ [~jlowe]

> TimelineServer 1.5 start fails with NoClassDefFoundError
> --------------------------------------------------------
>
>                 Key: YARN-8383
>                 URL: https://issues.apache.org/jira/browse/YARN-8383
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.8.4
>            Reporter: Rohith Sharma K S
>            Priority: Blocker
>
> TimelineServer 1.5 start fails with NoClassDefFoundError.
> {noformat}
> 2018-05-31 22:10:58,548 FATAL org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer:
Error starting ApplicationHistoryServer
> java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonFactory
> 	at org.apache.hadoop.yarn.server.timeline.RollingLevelDBTimelineStore.<clinit>(RollingLevelDBTimelineStore.java:174)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:348)
> 	at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2306)
> 	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2271)
> 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
> 	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2393)
> 	at org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore.createSummaryStore(EntityGroupFSTimelineStore.java:239)
> 	at org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore.serviceInit(EntityGroupFSTimelineStore.java:146)
> 	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> 	at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> 	at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceInit(ApplicationHistoryServer.java:115)
> 	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> 	at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.launchAppHistoryServer(ApplicationHistoryServer.java:180)
> 	at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.main(ApplicationHistoryServer.java:190)
> Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonFactory
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> 	... 15 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message