You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Huafeng Wang (JIRA)" <ji...@apache.org> on 2014/08/25 09:16:57 UTC

[jira] [Created] (HBASE-11816) Initializing custom Metrics implementation failed in Mapper or Reducer

Huafeng Wang created HBASE-11816:
------------------------------------

             Summary: Initializing custom Metrics implementation failed in Mapper or Reducer
                 Key: HBASE-11816
                 URL: https://issues.apache.org/jira/browse/HBASE-11816
             Project: HBase
          Issue Type: Bug
          Components: metrics
            Reporter: Huafeng Wang


When I want to initialize a custom MetricsSource implementation which extends class BaseSourceImpl in Mapper or Reducer’s setup stage, an exception will be thrown:
Error: org.apache.hadoop.metrics2.MetricsException: Metrics source JvmMetrics already exists!
        at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.newSourceName(DefaultMetricsSystem.java:126)
        at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(DefaultMetricsSystem.java:107)
        at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:217)
        at org.apache.hadoop.metrics2.source.JvmMetrics.create(JvmMetrics.java:78)
        at org.apache.hadoop.hbase.metrics.BaseSourceImpl$DefaultMetricsSystemInitializer.init(BaseSourceImpl.java:51)
        at org.apache.hadoop.hbase.metrics.BaseSourceImpl.<init>(BaseSourceImpl.java:74)
        at org.apache.hadoop.hbase.mapreduce.IdentityTableReducer.setup(IdentityTableReducer.java:89)
        at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:168)
        at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)
        at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
        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:1548)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)

The bug is similar to https://issues.apache.org/jira/browse/MAPREDUCE-3976



--
This message was sent by Atlassian JIRA
(v6.2#6252)