You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nihal Jain (Jira)" <ji...@apache.org> on 2024/01/10 10:56:00 UTC

[jira] [Commented] (HBASE-28298) HFilePrettyPrinter thrown NoSuchMethodError about MetricRegistry

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

Nihal Jain commented on HBASE-28298:
------------------------------------

Hi [~mrzhao] Thanks for reporting the issue. Could you please specify the version/branch you saw this error? Also are you planning to work on this?

> HFilePrettyPrinter thrown NoSuchMethodError about MetricRegistry
> ----------------------------------------------------------------
>
>                 Key: HBASE-28298
>                 URL: https://issues.apache.org/jira/browse/HBASE-28298
>             Project: HBase
>          Issue Type: Bug
>          Components: HFile
>            Reporter: Moran
>            Priority: Major
>
> {{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)