hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11816) Initializing custom Metrics implementation failed in Mapper or Reducer
Date Mon, 25 Aug 2014 23:04:59 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109931#comment-14109931
] 

Hudson commented on HBASE-11816:
--------------------------------

SUCCESS: Integrated in HBase-0.98-on-Hadoop-1.1 #442 (See [https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/442/])
HBASE-11816 Initializing custom Metrics implementation failed in Mapper or Reducer (stack:
rev 5600f0c1795fb215c1117a64cb21111d66b0da0a)
* hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/metrics/BaseSourceImpl.java


> 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
>            Priority: Minor
>             Fix For: 0.99.0, 2.0.0, 0.98.6
>
>         Attachments: hbase-11816.patch
>
>
> 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)

Mime
View raw message