Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7827

Stop and Delete Yarn Service from RM UI fails with HTTP ERROR 404

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.1.0
    • yarn-ui-v2
    • None

    Description

      Steps:
      1) Enable Ats v2
      2) Start Httpd Yarn service
      3) Go to UI2 attempts page for yarn serviceĀ 
      4) Click on setting icon
      5) Click on stop service
      6) This action will pop up a box to confirm stop. click on "Yes"

      Expected behavior:
      Yarn service should be stopped

      Actual behavior:
      Yarn UI is not notifying on whether Yarn service is stopped or not.
      On checking network stack trace, the PUT request failed with HTTP error 404

      Sorry, got error 404
      Please consult RFC 2616 for meanings of the error code.
      Error Details
      org.apache.hadoop.yarn.webapp.WebAppException: /v1/services/httpd-hrt-qa-n: controller for v1 not found
      	at org.apache.hadoop.yarn.webapp.Router.resolveDefault(Router.java:247)
      	at org.apache.hadoop.yarn.webapp.Router.resolve(Router.java:155)
      	at org.apache.hadoop.yarn.webapp.Dispatcher.service(Dispatcher.java:143)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
      	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
      	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
      	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
      	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:178)
      	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.http.CrossOriginFilter.doFilter(CrossOriginFilter.java:98)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
      	at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1578)
      	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:534)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
      	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)

      Attachments

        1. Screen Shot 2018-02-07 at 3.51.54 PM.png
          228 kB
          Sunil G
        2. YARN-7827.001.patch
          2 kB
          Sunil G
        3. YARN-7827.002.patch
          15 kB
          Sunil G

        Issue Links

          Activity

            People

              sunilg Sunil G
              yeshavora Yesha Vora
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: