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

Metrics servlet throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.3.2, 1.4.1, 2.0.0-beta-1, 2.0.0, 1.2.7
    • Component/s: None
    • Labels:
      None

      Description

      In branch-1 at least we put up a servlet on "/metrics" that is Hadoop's MetricsServlet. However HBase users are expected to pick up metrics via "/jmx". We don't mention "/metrics" or link to it on the UI. If you attempt to access "/metrics" with head of branch-1 it errors out due to a NPE

      2017-12-04 16:06:37,403 ERROR [1874557409@qtp-1910896157-3] mortbay.log: /metrics
      java.lang.NullPointerException
      	at org.apache.hadoop.http.HttpServer2.isInstrumentationAccessAllowed(HttpServer2.java:1049)
      	at org.apache.hadoop.metrics.MetricsServlet.doGet(MetricsServlet.java:109)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      

        Attachments

        1. HBASE-19424.branch-1.patch
          0.8 kB
          Toshihiro Suzuki

          Activity

            People

            • Assignee:
              brfrn169 Toshihiro Suzuki
              Reporter:
              apurtell Andrew Kyle Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: