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

Table fragmentation display triggers NPE on master status page

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      • Enable UI support for Fragmentation
        <property>
          <name>hbase.master.ui.fragmentation.enabled</name>
          <value>true</value>
        </property>
      

      Make sure to restart HBase.

      • Create NSes and table
      hbase(main):004:0> create_namespace 'testqauat'
      0 row(s) in 0.0370 seconds
      
      hbase(main):005:0> create_namespace 'financedept'
      0 row(s) in 0.0100 seconds
      
      hbase(main):006:0> create_namespace 'engdept'
      0 row(s) in 0.0090 seconds
      
      hbase(main):007:0> create 'testqauat:testtable', 'cf1'
      0 row(s) in 1.2590 seconds
      
      => Hbase::Table - testqauat:testtable
      hbase(main):008:0> for i in 'a'..'z' do for j in 'a'..'z' do put 'testqauat:testtable', "row-#{i}#{j}", "cf1:#{j}", "#{j}" end end
      
      • Reload the master UI page and you get:
      HTTP ERROR 500
      
      Problem accessing /master-status. Reason:
      
          INTERNAL_SERVER_ERROR
      Caused by:
      
      java.lang.NullPointerException
      	at org.apache.hadoop.hbase.tmpl.master.MasterStatusTmplImpl.__jamon_innerUnit__userTables(MasterStatusTmplImpl.java:685)
      	at org.apache.hadoop.hbase.tmpl.master.MasterStatusTmplImpl.renderNoFlush(MasterStatusTmplImpl.java:268)
      	at org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.renderNoFlush(MasterStatusTmpl.java:377)
      	at org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.render(MasterStatusTmpl.java:368)
      	at org.apache.hadoop.hbase.master.MasterStatusServlet.doGet(MasterStatusServlet.java:81)
      ...
      

      Note that the table.jsp page works fine, just the master page fails.

      Attachments

        Activity

          People

            larsgeorge Lars George
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: