From 5f27a009ab50f6ed59a0512cd2103d9a55185585 Mon Sep 17 00:00:00 2001 From: WenFeiYi Date: Wed, 29 Jul 2020 20:13:59 +0530 Subject: [PATCH] HBASE-24752 NPE/500 accessing webui on master startup Closes #2148 Signed-off-by: Ted Yu Signed-off-by: Viraj Jasani --- .../org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon index cdc216828c8f..19759b50b411 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon @@ -225,7 +225,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <%if master.getAssignmentManager() != null %> <& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&> - <%if !master.isInMaintenanceMode() %> + <%if !master.isInMaintenanceMode() && master.getMasterCoprocessorHost() != null %> <%if RSGroupUtil.isRSGroupEnabled(master.getConfiguration()) && serverManager.getOnlineServersList().size() > 0 %>