ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-20156) HadoopTimelineMetricsSink breaks after Hadoop 3 alpha2
Date Thu, 23 Feb 2017 22:36:44 GMT
Wei-Chiu Chuang created AMBARI-20156:
----------------------------------------

             Summary: HadoopTimelineMetricsSink breaks after Hadoop 3 alpha2
                 Key: AMBARI-20156
                 URL: https://issues.apache.org/jira/browse/AMBARI-20156
             Project: Ambari
          Issue Type: Bug
          Components: metrics
            Reporter: Wei-Chiu Chuang


Because of an API change in Hadoop 3 alpha 2, HadoopTimelineMetricsSink will fail to load
with the following error:

{noformat}
2017-02-22 15:05:45,577 ERROR namenode.NameNode (NameNode.java:main(1709)) - Failed to start
namenode.
java.lang.AbstractMethodError: org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink.init(Lorg/apache/commons/configuration2/SubsetConfiguration;)V
       at org.apache.hadoop.metrics2.impl.MetricsConfig.getPlugin(MetricsConfig.java:208)
       at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.newSink(MetricsSystemImpl.java:531)
       at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configureSinks(MetricsSystemImpl.java:503)
       at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configure(MetricsSystemImpl.java:479)
       at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.start(MetricsSystemImpl.java:188)
       at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.init(MetricsSystemImpl.java:163)
       at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.init(DefaultMetricsSystem.java:62)
       at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.initialize(DefaultMetricsSystem.java:58)
       at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1635)
       at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1704)
2017-02-22 15:05:45,578 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with
status 1
{noformat}

The Hadoop API MetricsPlugin.init() has a parameter that changed from org.apache.commons.configuration.SubsetConfiguration
to org.apache.commons.configuration2.SubsetConfiguration.

Credit: the bug was found by Daniel Pol.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message