You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Amith sha <am...@gmail.com> on 2021/01/24 17:40:54 UTC
YARN Services Framework API Fails
Hi All,
Tried to enable the YARN Services so made the following changes on the
yarn-site.xml
</property>
<property>
<name>hadoop.registry.rm.enabled</name>
<value>true</value>
</property>
<property>
<name>yarn.webapp.api-service.enable</name>
<value>true</value>
</property>
So after the change, while accessing the API path got the following the
exceptions
<RemoteException>
<exception>WebApplicationException</exception>
<javaClassName>javax.ws.rs.WebApplicationException</javaClassName>
</RemoteException>
URL: http://x.x.x.x:8088/app/v1/services
Tried via curl command receied same output .
Thanks & Regards
Amithsha
Re: YARN Services Framework API Fails
Posted by Amith sha <am...@gmail.com>.
Yarn log
2021-01-24 17:57:57,019 WARN webapp.GenericExceptionHandler (?:?(?)) -
INTERNAL_SERVER_ERROR
javax.ws.rs.WebApplicationException
at
com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66)
at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:941)
at
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:875)
at
org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter.doFilter(RMWebAppFilter.java:179)
at
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:829)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at
org.apache.hadoop.security.http.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:57)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at
org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter.doFilter(StaticUserWebFilter.java:110)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:644)
at
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
at
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:592)
at
org.apache.hadoop.yarn.server.security.http.RMAuthenticationFilter.doFilter(RMAuthenticationFilter.java:82)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at
org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1624)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:539)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at
org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Thanks & Regards
Amithsha
On Mon, Jan 25, 2021 at 6:01 AM William Watson <wi...@gmail.com>
wrote:
> What do the yarn logs say? Have you tried just enabling one?
>
> William
>
> On Sun, Jan 24, 2021 at 12:48 Amith sha <am...@gmail.com> wrote:
>
>> Hi All,
>> Tried to enable the YARN Services so made the following changes on the
>> yarn-site.xml
>>
>>
>> </property>
>>
>> <property>
>>
>> <name>hadoop.registry.rm.enabled</name>
>>
>> <value>true</value>
>>
>> </property>
>>
>>
>> <property>
>>
>>
>>
>> <name>yarn.webapp.api-service.enable</name>
>>
>> <value>true</value>
>>
>> </property>
>>
>>
>> So after the change, while accessing the API path got the following the
>> exceptions
>>
>> <RemoteException>
>> <exception>WebApplicationException</exception>
>> <javaClassName>javax.ws.rs.WebApplicationException</javaClassName>
>> </RemoteException>
>>
>> URL: http://x.x.x.x:8088/app/v1/services
>>
>> Tried via curl command receied same output .
>>
>>
>>
>>
>>
>> Thanks & Regards
>> Amithsha
>>
> --
> William Watson
>
>
Re: YARN Services Framework API Fails
Posted by William Watson <wi...@gmail.com>.
What do the yarn logs say? Have you tried just enabling one?
William
On Sun, Jan 24, 2021 at 12:48 Amith sha <am...@gmail.com> wrote:
> Hi All,
> Tried to enable the YARN Services so made the following changes on the
> yarn-site.xml
>
>
> </property>
>
> <property>
>
> <name>hadoop.registry.rm.enabled</name>
>
> <value>true</value>
>
> </property>
>
>
> <property>
>
>
>
> <name>yarn.webapp.api-service.enable</name>
>
> <value>true</value>
>
> </property>
>
>
> So after the change, while accessing the API path got the following the
> exceptions
>
> <RemoteException>
> <exception>WebApplicationException</exception>
> <javaClassName>javax.ws.rs.WebApplicationException</javaClassName>
> </RemoteException>
>
> URL: http://x.x.x.x:8088/app/v1/services
>
> Tried via curl command receied same output .
>
>
>
>
>
> Thanks & Regards
> Amithsha
>
--
William Watson