You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2015/05/26 16:24:18 UTC

[jira] [Created] (HBASE-13777) Table fragmentation display triggers NPE on master status page

Lars George created HBASE-13777:
-----------------------------------

             Summary: Table fragmentation display triggers NPE on master status page
                 Key: HBASE-13777
                 URL: https://issues.apache.org/jira/browse/HBASE-13777
             Project: HBase
          Issue Type: Bug
          Components: UI
    Affects Versions: 1.1.0
            Reporter: Lars George


Steps to reproduce:

- Enable UI support for Fragmentation

{noformat}
  <property>
    <name>hbase.master.ui.fragmentation.enabled</name>
    <value>true</value>
  </property>
{noformat}

Make sure to restart HBase.

- Create NSes and table

{noformat}
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
{noformat}

- Reload the master UI page and you get:

{noformat}
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)
...
{noformat}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)