HBASE-7187 Create empty hbase-client module

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1416664 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2012-12-03 21:11:31 +00:00
parent 489726957e
commit d269cd2687
5 changed files with 87 additions and 13 deletions

View File

@ -109,10 +109,6 @@
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId> <artifactId>hadoop-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-test</artifactId>
</dependency>
</dependencies> </dependencies>
</profile> </profile>
@ -137,10 +133,6 @@
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-annotations</artifactId> <artifactId>hadoop-annotations</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minicluster</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
@ -191,10 +183,6 @@
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-annotations</artifactId> <artifactId>hadoop-annotations</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minicluster</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

View File

@ -274,6 +274,10 @@
<groupId>org.apache.hbase</groupId> <groupId>org.apache.hbase</groupId>
<artifactId>hbase-protocol</artifactId> <artifactId>hbase-protocol</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.hbase</groupId> <groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId> <artifactId>hbase-common</artifactId>
@ -477,7 +481,6 @@
<dependency> <dependency>
<groupId>org.cloudera.htrace</groupId> <groupId>org.cloudera.htrace</groupId>
<artifactId>htrace</artifactId> <artifactId>htrace</artifactId>
<version>1.49</version>
</dependency> </dependency>
</dependencies> </dependencies>
<profiles> <profiles>

View File

@ -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.
</%doc>
<%args>
HMaster master;
</%args>
<%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;
</%import>
<%java>
Collection<ServerName> backupMasters = null;
if (master.isActiveMaster()) {
ClusterStatus status = master.getClusterStatus();
backupMasters = status.getBackupMasters();
}
</%java>
<table class="table table-striped">
<%if (backupMasters != null && backupMasters.size() > 0)%>
<tr>
<th>ServerName</th>
<th>Port</th>
<th>Start time</th>
</tr>
<%java>
ServerName [] serverNames = backupMasters.toArray(new ServerName[backupMasters.size()]);
Arrays.sort(serverNames);
for (ServerName serverName: serverNames) {
</%java>
<tr>
<td><% serverName.getHostname() %></td>
<td><% serverName.getPort() %></td>
<td><% new Date(serverName.getStartcode()) %></td>
</tr>
<%java>
}
</%java>
</%if>
<tr><td>Total:<% (backupMasters != null) ? backupMasters.size() : 0 %></td>
</table>

View File

@ -126,6 +126,8 @@ org.apache.hadoop.hbase.HBaseConfiguration;
</div> </div>
</%if> </%if>
<h2>Backup Masters</h2>
<& BackupMasterListTmpl; master = master &>
<h2>Region Servers</h2> <h2>Region Servers</h2>
<& RegionServerListTmpl; master= master; servers = servers &> <& RegionServerListTmpl; master= master; servers = servers &>

12
pom.xml
View File

@ -51,6 +51,7 @@
<modules> <modules>
<module>hbase-server</module> <module>hbase-server</module>
<module>hbase-protocol</module> <module>hbase-protocol</module>
<module>hbase-client</module>
<module>hbase-hadoop2-compat</module> <module>hbase-hadoop2-compat</module>
<module>hbase-hadoop1-compat</module> <module>hbase-hadoop1-compat</module>
<module>hbase-hadoop-compat</module> <module>hbase-hadoop-compat</module>
@ -847,6 +848,7 @@
<jersey.version>1.8</jersey.version> <jersey.version>1.8</jersey.version>
<jruby.version>1.6.8</jruby.version> <jruby.version>1.6.8</jruby.version>
<junit.version>4.10-HBASE-1</junit.version> <junit.version>4.10-HBASE-1</junit.version>
<htrace.version>1.49</htrace.version>
<slf4j.version>1.4.3</slf4j.version> <slf4j.version>1.4.3</slf4j.version>
<log4j.version>1.2.17</log4j.version> <log4j.version>1.2.17</log4j.version>
<mockito-all.version>1.9.0</mockito-all.version> <mockito-all.version>1.9.0</mockito-all.version>
@ -970,6 +972,11 @@
<type>test-jar</type> <type>test-jar</type>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<artifactId>hbase-client</artifactId>
<groupId>org.apache.hbase</groupId>
<version>${project.version}</version>
</dependency>
<!-- General dependencies --> <!-- General dependencies -->
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
@ -1221,6 +1228,11 @@
<!-- FIXME: the following needs to go away once HBASE-4955 is fixed --> <!-- FIXME: the following needs to go away once HBASE-4955 is fixed -->
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency>
<groupId>org.cloudera.htrace</groupId>
<artifactId>htrace</artifactId>
<version>${htrace.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId> <artifactId>mockito-all</artifactId>