Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28298

HFilePrettyPrinter thrown NoSuchMethodError about MetricRegistry

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              mrzhao Moran
              mrzhao Moran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: