diff --git a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp index 7c2770d77e7..6ca818f35c8 100644 --- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp @@ -27,6 +27,7 @@ import="java.util.Map" import="java.util.Collections" import="java.util.Comparator" + import="java.util.Collection" import="org.apache.hadoop.conf.Configuration" import="org.apache.hadoop.util.StringUtils" import="org.apache.hadoop.hbase.client.HTable" @@ -37,6 +38,7 @@ import="org.apache.hadoop.hbase.ServerLoad" import="org.apache.hadoop.hbase.RegionLoad" import="org.apache.hadoop.hbase.HConstants" + import="org.apache.hadoop.hbase.io.ImmutableBytesWritable" import="org.apache.hadoop.hbase.master.HMaster" import="org.apache.hadoop.hbase.zookeeper.MetaTableLocator" import="org.apache.hadoop.hbase.util.Bytes" @@ -46,6 +48,7 @@ import="org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos" import="org.apache.hadoop.hbase.protobuf.generated.HBaseProtos" import="org.apache.hadoop.hbase.TableName" + import="org.apache.hadoop.hbase.HColumnDescriptor" import="org.apache.hadoop.hbase.client.RegionReplicaUtil" import="org.apache.hadoop.hbase.HBaseConfiguration" %> <% @@ -300,6 +303,43 @@ if ( fqtn != null ) { <% } %> +

Table Schema

+ + + + + + <% + Collection families = table.getTableDescriptor().getFamilies(); + for (HColumnDescriptor family: families) { + %> + + + + + <% } %> +
Column Name
<%= family.getNameAsString() %> + + + + + + <% + Map familyValues = family.getValues(); + for (ImmutableBytesWritable familyKey: familyValues.keySet()) { + final ImmutableBytesWritable familyValue = familyValues.get(familyKey); + %> + + + + + <% } %> +
PropertyValue
+ <%= Bytes.toString(familyKey.get(), familyKey.getOffset(), familyKey.getLength()) %> + + <%= Bytes.toString(familyValue.get(), familyValue.getOffset(), familyValue.getLength()) %> +
+
<% long totalReadReq = 0; long totalWriteReq = 0;