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

Yufei Gu edited comment on YARN-7853 at 1/30/18 1:56 AM:
---------------------------------------------------------

TimelineCollectorManager is in package 
hadoop-yarn-server-timelineservice-3.1.0-SNAPSHOT.jar. We probably want to put 
hadoop-yarn-server-timelineservice-3.1.0-SNAPSHOT.jar into 
/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-3.1.0-SNAPSHOT/share/hadoop/tools/lib
  so that it could be in the classpath of SLS. 


was (Author: yufeigu):
We probably want to put hadoop-yarn-server-timelineservice-3.1.0-SNAPSHOT.jar 
into 
/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-3.1.0-SNAPSHOT//share/hadoop/tools/lib
  so that hadoop-yarn-server-timelineservice-3.1.0-SNAPSHOT.jar could be in the 
classpath of SLS. 

> SLS failed to startup due to java.lang.NoClassDefFoundError
> -----------------------------------------------------------
>
>                 Key: YARN-7853
>                 URL: https://issues.apache.org/jira/browse/YARN-7853
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: scheduler-load-simulator
>    Affects Versions: 3.1.0
>            Reporter: Yufei Gu
>            Priority: Major
>
> {code}
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at java.lang.Class.getDeclaredMethods0(Native Method)
>       at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>       at java.lang.Class.getDeclaredMethods(Class.java:1975)
>       at 
> com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:688)
>       at 
> com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:380)
>       at 
> com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:399)
>       at 
> com.google.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:84)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebApp.setup(RMWebApp.java:60)
>       at 
> org.apache.hadoop.yarn.webapp.WebApp.configureServlets(WebApp.java:160)
>       at 
> com.google.inject.servlet.ServletModule.configure(ServletModule.java:55)
>       at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
>       at 
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
>       at com.google.inject.spi.Elements.getElements(Elements.java:110)
>       at 
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
>       at 
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
>       at com.google.inject.Guice.createInjector(Guice.java:96)
>       at com.google.inject.Guice.createInjector(Guice.java:73)
>       at com.google.inject.Guice.createInjector(Guice.java:62)
>       at org.apache.hadoop.yarn.webapp.WebApps$Builder.build(WebApps.java:379)
>       at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:424)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:1126)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1236)
>       at 
> org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
>       at org.apache.hadoop.yarn.sls.SLSRunner.startRM(SLSRunner.java:284)
>       at org.apache.hadoop.yarn.sls.SLSRunner.start(SLSRunner.java:231)
>       at org.apache.hadoop.yarn.sls.SLSRunner.run(SLSRunner.java:943)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>       at org.apache.hadoop.yarn.sls.SLSRunner.main(SLSRunner.java:950)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorManager
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       ... 40 more
> {code}



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

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

Reply via email to