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

Metric level hadoop metrics2 filter is incompatible with AMS HadoopTimelineMetricsSink.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      2016-10-19 14:46:41,647 INFO  [HBase-Metrics2-1] timeline.HadoopTimelineMetricsSink: Collector Uri: http://apappu-hdp-3.hdp.com:6188/ws/v1/timeline/metrics
      2016-10-19 14:46:41,653 INFO  [HBase-Metrics2-1] impl.MetricsSinkAdapter: Sink timeline started
      2016-10-19 14:46:41,655 INFO  [HBase-Metrics2-1] impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
      2016-10-19 14:46:41,655 INFO  [HBase-Metrics2-1] impl.MetricsSystemImpl: HBase metrics system started
      java.lang.ClassCastException: org.apache.hadoop.metrics2.impl.MetricsRecordFiltered$1 cannot be cast to java.util.Collection
              at org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink.putMetrics(HadoopTimelineMetricsSink.java:258)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:186)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:43)
              at org.apache.hadoop.metrics2.impl.SinkQueue.consumeAll(SinkQueue.java:87)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.publishMetricsFromQueue(MetricsSinkAdapter.java:134)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter$1.run(MetricsSinkAdapter.java:88)
      2016-10-18 13:39:42,896 ERROR [timeline] impl.MetricsSinkAdapter: Got sink exception and over retry limit, suppressing further error messages
      java.lang.ClassCastException: org.apache.hadoop.metrics2.impl.MetricsRecordFiltered$1 cannot be cast to java.util.Collection
              at org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink.putMetrics(HadoopTimelineMetricsSink.java:258)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:186)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:43)
              at org.apache.hadoop.metrics2.impl.SinkQueue.consumeAll(SinkQueue.java:87)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.publishMetricsFromQueue(MetricsSinkAdapter.java:134)
              at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter$1.run(MetricsSinkAdapter.java:88)
      Tue Oct 18 13:41:53 PDT 2016 Terminating regionserver
      

      Attachments

        1. AMBARI-18655.patch
          1 kB
          Aravindan Vijayan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            avijayan Aravindan Vijayan
            avijayan Aravindan Vijayan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment