[
https://issues.apache.org/jira/browse/HBASE-28298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831607#comment-17831607
]
Moran commented on HBASE-28298:
-------------------------------
[~nihaljain.cs] [~bbeaudreault] HBASE-27224 uses metrics-core new api, hadoop2
relies on old metrics-core. Caused a conflict.
> HFilePrettyPrinter thrown NoSuchMethodError about MetricRegistry
> ----------------------------------------------------------------
>
> Key: HBASE-28298
> URL: https://issues.apache.org/jira/browse/HBASE-28298
> Project: HBase
> Issue Type: Bug
> Components: HFile, UI
> Affects Versions: 2.5.6
> Reporter: Moran
> Priority: Major
> Labels: pull-request-available
>
> {{When I view the contents of the HFile through storeFile.jsp or hbase hfile
> -p -v xxxx, it will throw an exception similar to the following:}}
>
> {{HTTP ERROR 500 java.lang.NoSuchMethodError: 'com.codahale.metrics.Histogram
> com.codahale.metrics.MetricRegistry.histogram(java.lang.String,
> com.codahale.metrics.MetricRegistry$MetricSupplier)'}}
> ||URI:|/storeFile.jsp|
> ||STATUS:|500|
> ||MESSAGE:|java.lang.NoSuchMethodError: 'com.codahale.metrics.Histogram
> com.codahale.metrics.MetricRegistry.histogram(java.lang.String,
> com.codahale.metrics.MetricRegistry$MetricSupplier)'|
> ||SERVLET:|org.apache.hadoop.hbase.generated.regionserver.storeFile_jsp|
> ||CAUSED BY:|java.lang.NoSuchMethodError: 'com.codahale.metrics.Histogram
> com.codahale.metrics.MetricRegistry.histogram(java.lang.String,
> com.codahale.metrics.MetricRegistry$MetricSupplier)'|
> I found that there were conflicting files in the lib folder, specifically
> metrics-core-3.0.1.jar and metrics-core-3.2.6.jar. After deleting
> metrics-core-3.0.1.jar, the functionality returned to normal.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)