Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10644

Slider view page throws "Could not initialize class org.apache.hadoop.ipc.ProtobufRpcEngine"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: ambari-views
    • Labels:

      Description

      Here is the exception stack from ambari logs -

      21 Apr 2015 20:31:13,524 ERROR [qtp-client-1518] AbstractResourceProvider:181 - Caught exception getting view sub resources.
      java.lang.RuntimeException: Could not initialize class org.apache.hadoop.ipc.ProtobufRpcEngine
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl.createSliderClient(SliderAppsViewControllerImpl.java:838)
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl$3.run(SliderAppsViewControllerImpl.java:510)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:415)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl.invokeSliderClientRunnable(SliderAppsViewControllerImpl.java:507)
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl.getSliderApps(SliderAppsViewControllerImpl.java:899)
              at org.apache.ambari.view.slider.SliderAppsResourceProvider.getResources(SliderAppsResourceProvider.java:98)
              at org.apache.ambari.server.view.ViewSubResourceProvider.getResources(ViewSubResourceProvider.java:165)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java:945)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:132)
              at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:475)
              at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:434)
              at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:407)
              at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:217)
              at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:68)
              at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:72)
              at org.apache.ambari.server.api.services.ViewInstanceService.getService(ViewInstanceService.java:96)
              at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
              at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
              at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
              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)
      /slider
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
              at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.java:72)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
              at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:47)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
              at org.apache.ambari.server.controller.FailsafeHandlerList.handleNonFailSafe(FailsafeHandlerList.java:148)
              at org.apache.ambari.server.controller.AmbariHandlerList.handleNonFailSafe(AmbariHandlerList.java:157)
              at org.apache.ambari.server.controller.FailsafeHandlerList.handle(FailsafeHandlerList.java:130)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
              at org.eclipse.jetty.server.Server.handle(Server.java:363)
              at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
              at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)
              at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)
              at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
              at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
              at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.ipc.ProtobufRpcEngine
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:274)
              at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2134)
              at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2099)
              at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)
              at org.apache.hadoop.ipc.RPC.getProtocolEngine(RPC.java:204)
              at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:577)
              at org.apache.hadoop.hdfs.NameNodeProxies.createNNProxyWithClientProtocol(NameNodeProxies.java:420)
              at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:316)
              at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:178)
              at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:677)
              at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
              at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
              at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
              at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
              at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
              at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
              at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
              at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:170)
              at org.apache.slider.common.tools.CoreFileSystem.<init>(CoreFileSystem.java:81)
              at org.apache.slider.common.tools.SliderFileSystem.<init>(SliderFileSystem.java:38)
              at org.apache.slider.client.SliderClient.initHadoopBinding(SliderClient.java:540)
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl$6.init(SliderAppsViewControllerImpl.java:817)
              at org.apache.ambari.view.slider.SliderAppsViewControllerImpl.createSliderClient(SliderAppsViewControllerImpl.java:831)
              ... 98 more
      

        Attachments

        1. sliderViewPage.png
          137 kB
          Gour Saha
        2. AMBARI-10644.patch
          0.7 kB
          Gour Saha

          Activity

            People

            • Assignee:
              srimanth.gunturi Srimanth Gunturi
              Reporter:
              gsaha Gour Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: