[ 
https://issues.apache.org/jira/browse/YARN-8383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16538699#comment-16538699
 ] 

Jason Lowe commented on YARN-8383:
----------------------------------

bq. I think adding dependencies share/hadoop/yarn/lib is right way to fix. But 
this change going to bring back YARN-6628 which will become compatible issue 
for older jobs right?

I'm not proposing adding the dependency back for 2.8.  The attached patch 
shades even more than we did before, so if anything we're removing dependencies 
from an app's point of view if this patch goes into 2.8.

Instead I was proposing adding the dependency back in for branch-2 and 
branch-2.9, since the jackson dependency is already there in those release 
lines due to HDFS pulling it in.  On those two branches shading YARN's jackson 
dependency isn't buying us anything from an app's perspective.


> 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
>            Assignee: Jason Lowe
>            Priority: Blocker
>         Attachments: YARN-8383.001-branch-2.8.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to