diff --git a/hbase-common/pom.xml b/hbase-common/pom.xml index c541bab3bb5..40cc281ea83 100644 --- a/hbase-common/pom.xml +++ b/hbase-common/pom.xml @@ -109,10 +109,6 @@ org.apache.hadoop hadoop-core - - org.apache.hadoop - hadoop-test - @@ -137,10 +133,6 @@ org.apache.hadoop hadoop-annotations - - org.apache.hadoop - hadoop-minicluster - @@ -191,10 +183,6 @@ org.apache.hadoop hadoop-annotations - - org.apache.hadoop - hadoop-minicluster - diff --git a/hbase-server/pom.xml b/hbase-server/pom.xml index c134fc1c4a2..8a054532da6 100644 --- a/hbase-server/pom.xml +++ b/hbase-server/pom.xml @@ -274,6 +274,10 @@ org.apache.hbase hbase-protocol + + org.apache.hbase + hbase-client + org.apache.hbase hbase-common @@ -477,7 +481,6 @@ org.cloudera.htrace htrace - 1.49 diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterListTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterListTmpl.jamon new file mode 100644 index 00000000000..f3a3a82157e --- /dev/null +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterListTmpl.jamon @@ -0,0 +1,69 @@ +<%doc> +Copyright The Apache Software Foundation + +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +<%args> +HMaster master; + + +<%import> + java.util.*; + org.apache.hadoop.util.StringUtils; + org.apache.hadoop.hbase.util.Bytes; + org.apache.hadoop.hbase.master.HMaster; + org.apache.hadoop.hbase.HConstants; + org.apache.hadoop.hbase.ServerName; + org.apache.hadoop.hbase.ClusterStatus; + + +<%java> +Collection backupMasters = null; +if (master.isActiveMaster()) { + ClusterStatus status = master.getClusterStatus(); + backupMasters = status.getBackupMasters(); +} + + + +<%if (backupMasters != null && backupMasters.size() > 0)%> + + + + + +<%java> + ServerName [] serverNames = backupMasters.toArray(new ServerName[backupMasters.size()]); + Arrays.sort(serverNames); + for (ServerName serverName: serverNames) { + + + + + + +<%java> + } + + + +
ServerNamePortStart time
<% serverName.getHostname() %><% serverName.getPort() %><% new Date(serverName.getStartcode()) %>
Total:<% (backupMasters != null) ? backupMasters.size() : 0 %>
+ + + + 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 e7fb621e338..669b95cd11f 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 @@ -126,6 +126,8 @@ org.apache.hadoop.hbase.HBaseConfiguration; +

Backup Masters

+ <& BackupMasterListTmpl; master = master &>

Region Servers

<& RegionServerListTmpl; master= master; servers = servers &> diff --git a/pom.xml b/pom.xml index 049ef3fa24a..f2b240a4f40 100644 --- a/pom.xml +++ b/pom.xml @@ -51,6 +51,7 @@ hbase-server hbase-protocol + hbase-client hbase-hadoop2-compat hbase-hadoop1-compat hbase-hadoop-compat @@ -847,6 +848,7 @@ 1.8 1.6.8 4.10-HBASE-1 + 1.49 1.4.3 1.2.17 1.9.0 @@ -970,6 +972,11 @@ test-jar test
+ + hbase-client + org.apache.hbase + ${project.version} + io.netty @@ -1221,6 +1228,11 @@ true + + org.cloudera.htrace + htrace + ${htrace.version} + org.mockito mockito-all