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

Periodically Ambari Metrics Collectors falls with java.lang.InterruptedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.6.1
    • Fix Version/s: None
    • Component/s: ambari-metrics
    • Labels:
      None
    • Environment:

      CentOS 6.9 2.6.32-696.3.2.el6.x86_64

      jdk1.8.0_112 for Ambari Collector

      Description

      After stack trace:

      2018-08-14 19:40:45,112 ERROR org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.TimelineWebServices: Error saving metrics.
      org.apache.phoenix.exception.PhoenixIOException: Interrupted calling coprocessor service org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService for row \x00\x00CONTAINER_METRICS
              at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:117)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1295)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1260)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:1485)
              at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:514)
              at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:437)
              at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:429)
              at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:425)
              at org.apache.phoenix.execute.MutationState.validate(MutationState.java:734)
              at org.apache.phoenix.execute.MutationState.validateAll(MutationState.java:722)
              at org.apache.phoenix.execute.MutationState.send(MutationState.java:876)
              at org.apache.phoenix.execute.MutationState.send(MutationState.java:1327)
              at org.apache.phoenix.execute.MutationState.commit(MutationState.java:1159)
              at org.apache.phoenix.jdbc.PhoenixConnection$3.call(PhoenixConnection.java:528)
              at org.apache.phoenix.jdbc.PhoenixConnection$3.call(PhoenixConnection.java:525)
              at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
              at org.apache.phoenix.jdbc.PhoenixConnection.commit(PhoenixConnection.java:525)
              at org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.PhoenixHBaseAccessor.insertContainerMetrics(PhoenixHBaseAccessor.java:749)
              at org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.HBaseTimelineMetricStore.putContainerMetrics(HBaseTimelineMetricStore.java:366)
              at org.apache.hadoop.yarn.server.applicationhistoryservice.webapp.TimelineWebServices.postContainerMetrics(TimelineWebServices.java:306)
              at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
              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.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:1469)
              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
              at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
              at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895)
              at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843)
              at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804)
              at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
              at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
              at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.apache.hadoop.security.http.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:57)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter.doFilter(StaticUserWebFilter.java:109)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1426)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
              at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              at org.mortbay.jetty.Server.handle(Server.java:326)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
              at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: java.io.InterruptedIOException: Interrupted calling coprocessor service org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService for row \x00\x00CONTAINER_METRICS
              at org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:1755)
              at org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:1704)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1279)
              ... 66 more
      Caused by: java.lang.InterruptedException
              at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404)
              at java.util.concurrent.FutureTask.get(FutureTask.java:191)
              at org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:1748)
              ... 68 more
      

      Periodically Ambari Metrics Collector shuts down

      2018-08-14 19:40:45,207 WARN org.apache.helix.controller.GenericHelixController: ClusterEventProcessor interrupted
      java.lang.InterruptedException
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:502)
              at org.apache.helix.controller.stages.ClusterEventBlockingQueue.take(ClusterEventBlockingQueue.java:85)
              at org.apache.helix.controller.GenericHelixController$ClusterEventProcessor.run(GenericHelixController.java:594)
      2018-08-14 19:40:45,207 INFO org.apache.helix.controller.GenericHelixController: END ClusterEventProcessor thread
      2018-08-14 19:40:45,214 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Stopping phoenix metrics system...
      2018-08-14 19:40:45,216 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: phoenix metrics system stopped.
      2018-08-14 19:40:45,216 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: phoenix metrics system shutdown complete.
      2018-08-14 19:40:45,216 INFO org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl: Stopping ApplicationHistory
      2018-08-14 19:40:45,217 INFO org.apache.hadoop.ipc.Server: Stopping server on 60200
      2018-08-14 19:40:45,222 INFO org.apache.hadoop.ipc.Server: Stopping IPC Server listener on 60200
      2018-08-14 19:40:45,223 INFO org.apache.hadoop.ipc.Server: Stopping IPC Server Responder
      2018-08-14 19:40:45,228 INFO org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer: SHUTDOWN_MSG:
      /************************************************************
      SHUTDOWN_MSG: Shutting down ApplicationHistoryServer at hdp-main3/10.10.1.1
      ************************************************************/

      It happens several times a day and we don't know how to solve it

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              trider Valeriy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: