Name | Region Server | Encoded Name | Start Key | End Key |
";
HServerAddress rootLocation = master.getRootRegionLocation();
%>
<%
String action = request.getParameter("action");
String key = request.getParameter("key");
if ( action != null ) {
%>
Table action request accepted
<%
if (action.equals("split")) {
if (key != null && key.length() > 0) {
Writable[] arr = new Writable[1];
arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key));
master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_SPLIT, arr);
} else {
master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_SPLIT, null);
}
%> Split request accepted. <%
} else if (action.equals("compact")) {
if (key != null && key.length() > 0) {
Writable[] arr = new Writable[1];
arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key));
master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_COMPACT, arr);
} else {
master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_COMPACT, null);
}
%> Compact request accepted. <%
}
%>
Reload.
<%
} else {
%>
Table: <%= tableName %>
Table: <%= tableName %>
<%
if(tableName.equals(Bytes.toString(HConstants.ROOT_TABLE_NAME))) {
%>
<%= tableHeader %>
<%
int infoPort = serverAddressToServerInfos.get(rootLocation).getInfoPort();
String url = "http://" + rootLocation.getHostname() + ":" + infoPort + "/";
%>
<%= tableName %> |
<%= rootLocation.getHostname() %>:<%= rootLocation.getPort() %> |
- |
|
- |
<%
} else if(tableName.equals(Bytes.toString(HConstants.META_TABLE_NAME))) {
%>
<%= tableHeader %>
<%
Map