[
https://issues.apache.org/jira/browse/HADOOP-15775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16621620#comment-16621620
]
Akira Ajisaka commented on HADOOP-15775:
----------------------------------------
Ran TestMRJobs:
* Without patch: Failed to launch MiniYARNCluster in TestMRJobs.setup
{noformat}
2018-09-20 16:36:35,836 WARN [Thread-249] webapp.WebAppContext
(WebAppContext.java:doStart(531)) - Failed startup of context
o.e.j.w.WebAppContext@1a1880c2{/,file:///home/aajisaka/git/hadoop/hadoop-yarn-project/hadoop-yarn/had
oop-yarn-common/target/classes/webapps/jobhistory/,UNAVAILABLE}{/jobhistory}
com.google.inject.ProvisionException: Unable to provision, see the following
errors:
1) Error injecting constructor, java.lang.NoClassDefFoundError:
javax/activation/DataSource
at
org.apache.hadoop.mapreduce.v2.hs.webapp.JAXBContextResolver.<init>(JAXBContextResolver.java:71)
at org.apache.hadoop.mapreduce.v2.hs.webapp.HsWebApp.setup(HsWebApp.java:45)
while locating org.apache.hadoop.mapreduce.v2.hs.webapp.JAXBContextResolver
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
(snip)
at org.eclipse.jetty.server.Server.start(Server.java:422)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:389)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1141)
at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:439)
at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:428)
at
org.apache.hadoop.mapreduce.v2.hs.HistoryClientService.initializeWebApp(HistoryClientService.java:166)
at
org.apache.hadoop.mapreduce.v2.hs.HistoryClientService.serviceStart(HistoryClientService.java:122)
at
org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
at
org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:121)
at
org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.serviceStart(JobHistoryServer.java:200)
at
org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
at
org.apache.hadoop.mapreduce.v2.MiniMRYarnCluster$JobHistoryServerWrapper$1.run(MiniMRYarnCluster.java:255)
{noformat}
* With patch: MiniYARNCluster launched successfully
{noformat}
2018-09-20 16:23:36,293 INFO [Thread-249] webapp.WebApps
(WebApps.java:build(395)) - Registered webapp guice modules
2018-09-20 16:23:36,293 INFO [Thread-249] http.HttpServer2
(HttpServer2.java:bindListener(1192)) - Jetty bound to port 40222
2018-09-20 16:23:36,293 INFO [Thread-249] server.Server
(Server.java:doStart(346)) - jetty-9.3.19.v20170502
2018-09-20 16:23:36,295 INFO [Thread-249] handler.ContextHandler
(ContextHandler.java:doStart(781)) - Started
o.e.j.s.ServletContextHandler@221b6aa8{/logs,file:///home/aajisaka/git/hadoop/hadoop-mapreduce-project/hadoop-mapred
uce-client/hadoop-mapreduce-client-jobclient/target/log,AVAILABLE}
2018-09-20 16:23:36,295 INFO [Thread-249] handler.ContextHandler
(ContextHandler.java:doStart(781)) - Started
o.e.j.s.ServletContextHandler@6b88191b{/static,file:///home/aajisaka/git/hadoop/hadoop-yarn-project/hadoop-yarn/hado
op-yarn-common/target/classes/webapps/static/,AVAILABLE}
Sep 20, 2018 4:23:36 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.hs.webapp.HsWebServices as a
root resource class
Sep 20, 2018 4:23:36 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.hs.webapp.JAXBContextResolver
as a provider class
Sep 20, 2018 4:23:36 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a
provider class
Sep 20, 2018 4:23:36 PM
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
Sep 20, 2018 4:23:36 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory
getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.hs.webapp.JAXBContextResolver to
GuiceManagedComponentProvider with the scope "Singleton"
Sep 20, 2018 4:23:36 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory
getComponentProvider
INFO: Binding org.apache.hadoop.yarn.webapp.GenericExceptionHandler to
GuiceManagedComponentProvider with the scope "Singleton"
Sep 20, 2018 4:23:37 PM
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory
getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.hs.webapp.HsWebServices to
GuiceManagedComponentProvider with the scope "PerRequest"
2018-09-20 16:23:37,031 INFO [Thread-249] handler.ContextHandler
(ContextHandler.java:doStart(781)) - Started
o.e.j.w.WebAppContext@617e84e0{/,file:///home/aajisaka/git/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/classes/webapps/jobhistory/,AVAILABLE}{/jobhistory}
2018-09-20 16:23:37,033 INFO [Thread-249] server.AbstractConnector
(AbstractConnector.java:doStart(278)) - Started
ServerConnector@4780c460{HTTP/1.1,[http/1.1]}{aajisaka-hadoop-dev.kks.ynwm.yahoo.co.jp:40222}
2018-09-20 16:23:37,033 INFO [Thread-249] server.Server
(Server.java:doStart(414)) - Started @5881ms
2018-09-20 16:23:37,033 INFO [Thread-249] webapp.WebApps
(WebApps.java:start(440)) - Web app jobhistory started at 40222
{noformat}
> [JDK9] Add "--add-modules java.activation" to java option in unit tests
> -----------------------------------------------------------------------
>
> Key: HADOOP-15775
> URL: https://issues.apache.org/jira/browse/HADOOP-15775
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: test
> Reporter: Akira Ajisaka
> Assignee: Akira Ajisaka
> Priority: Critical
> Attachments: HADOOP-15775.01.patch
>
>
> Many unit tests fail due to missing java.activation module. We need to
> configure maven surefire plugin to add "--add-modules java.activation" option
> to test JVM.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]