[ 
https://issues.apache.org/jira/browse/HBASE-20670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell updated HBASE-20670:
-----------------------------------
    Description: 
{noformat}
Problem accessing /master-status. Reason: INTERNAL_SERVER_ERROR
Caused by: java.lang.NullPointerException
at org.apache.hadoop.hbase.master.HMaster.isInMaintenanceMode(HMaster.java:2559)
{noformat}

The ZK trackers, including the maintenance mode tracker, are initialized only 
after we try to bring up the filesystem. If HDFS is in safe mode and the master 
is waiting on that, when an access to the master status page comes in we trip 
over this problem. There might be other issues after we fix this, but NPE Is 
always a bug, so let's address it. One option is to connect the ZK based 
components with ZK before attempting to bring up the filesystem. Let me try 
that first. If that doesn't work we could at least throw an IOE.

  was:
{noformat}
Problem accessing /master-status. Reason: INTERNAL_SERVER_ERROR
Caused by: java.lang.NullPointerException
at org.apache.hadoop.hbase.master.HMaster.isInMaintenanceMode(HMaster.java:2559)
{noformat}

The ZK trackers, including the maintenance mode tracker, are initialized only 
after we try to bring up the filesystem. If HDFS is in safe mode then an access 
to the master status page trips over this problem. There might be other issues 
after we fix this, but NPE Is always a bug, so let's address it. One option is 
to connect the ZK based components with ZK before attempting to bring up the 
filesystem. Let me try that first. If that doesn't work we could at least throw 
an IOE.


> NPE in HMaster#isInMaintenanceMode
> ----------------------------------
>
>                 Key: HBASE-20670
>                 URL: https://issues.apache.org/jira/browse/HBASE-20670
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>             Fix For: 1.5.0, 1.3.3, 1.4.5
>
>
> {noformat}
> Problem accessing /master-status. Reason: INTERNAL_SERVER_ERROR
> Caused by: java.lang.NullPointerException
> at 
> org.apache.hadoop.hbase.master.HMaster.isInMaintenanceMode(HMaster.java:2559)
> {noformat}
> The ZK trackers, including the maintenance mode tracker, are initialized only 
> after we try to bring up the filesystem. If HDFS is in safe mode and the 
> master is waiting on that, when an access to the master status page comes in 
> we trip over this problem. There might be other issues after we fix this, but 
> NPE Is always a bug, so let's address it. One option is to connect the ZK 
> based components with ZK before attempting to bring up the filesystem. Let me 
> try that first. If that doesn't work we could at least throw an IOE.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to