[
https://issues.apache.org/jira/browse/HBASE-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408675#comment-13408675
]
Alex Baranau commented on HBASE-4050:
-------------------------------------
The problem with building against hadoop 2.0 (and same is with hadoop 3.0 I
believe) is that those classes in metrics2 package were renamed. So I got not
OOME, but compilation errors, like these (showing not all):
{noformat}
[ERROR]
/Users/alex/shared/hbase-trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/metrics/MasterMetricsV2.java:[25,37]
cannot find symbol
[ERROR] symbol : class MetricMutableCounterInt
[ERROR] location: package org.apache.hadoop.metrics2.lib
[ERROR]
[ERROR]
/Users/alex/shared/hbase-trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/metrics/MasterMetricsV2.java:[27,40]
cannot find symbol
[ERROR] symbol : class JvmMetricsSource
[ERROR] location: package org.apache.hadoop.metrics2.source
{noformat}
In hadoop 2.0+ these classes were renamed (not only these two):
MetricMutableCounterInt -> MutableCounterInt
JvmMetricsSource -> JvmMetrics
How soon do you think HBase can leave off dependency on hadoop 1.0?
Any suggestions about this situation?
> Update HBase metrics framework to metrics2 framework
> ----------------------------------------------------
>
> Key: HBASE-4050
> URL: https://issues.apache.org/jira/browse/HBASE-4050
> Project: HBase
> Issue Type: New Feature
> Components: metrics
> Affects Versions: 0.90.4
> Environment: Java 6
> Reporter: Eric Yang
> Assignee: Alex Baranau
> Priority: Critical
> Fix For: 0.96.0
>
> Attachments: 4050-metrics-v2.patch, HBASE-4050.patch
>
>
> Metrics Framework has been marked deprecated in Hadoop 0.20.203+ and 0.22+,
> and it might get removed in future Hadoop release. Hence, HBase needs to
> revise the dependency of MetricsContext to use Metrics2 framework.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira