Index: hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon =================================================================== --- hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon (revision 1350405) +++ hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon (working copy) @@ -66,9 +66,9 @@ View as JSON <%if tasks.isEmpty()%> - No tasks currently running on this node. +
No tasks currently running on this node.
<%else> -| Start Time | Description | Index: hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon =================================================================== --- hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon (revision 0) +++ hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon (revision 0) @@ -0,0 +1,191 @@ +<%doc> + Copyright 2011 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> + HRegionServer regionServer; + List
|---|
| Region Name | +Start Key | +End Key | +
|---|---|---|
| <% r.getRegionNameAsString() %> | +<% Bytes.toStringBinary(r.getStartKey()) %> | +<% Bytes.toStringBinary(r.getEndKey()) %> | +
| Region Name | +Read Request Count | +Write Request Count | +
|---|---|---|
| <% r.getRegionNameAsString() %> | +<% load.getReadRequestsCount() %> | +<% load.getWriteRequestsCount() %> | +
| Region Name | +Num. Stores | +Num. Storefiles | +Storefile Size Uncompressed | +Storefile Size | +Index Size | +Bloom Size | +
|---|---|---|---|---|---|---|
| <% r.getRegionNameAsString() %> | +<% load.getStores() %> | +<% load.getStorefiles() %> | +<% load.getStoreUncompressedSizeMB() %>MB | +<% load.getStorefileSizeMB() %>MB | +<% load.getTotalStaticIndexSizeKB() %>KB | +<% load.getTotalStaticBloomSizeKB() %>KB | +
| Region Name | +Num. Compacting KVs | +Num. Compacted KVs | +Compaction Progress | +
|---|---|---|---|
| <% r.getRegionNameAsString() %> | +<% load.getTotalCompactingKVs() %> | +<% load.getCurrentCompactedKVs() %> | +<% percentDone %> | +
-| Attribute Name | Value | Description |
|---|---|---|
| HBase Version | <% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %> | HBase version and revision |
| HBase Compiled | <% org.apache.hadoop.hbase.util.VersionInfo.getDate() %>, <% org.apache.hadoop.hbase.util.VersionInfo.getUser() %> | When HBase version was compiled and by whom |
| Metrics | <% metrics.toString() %> | RegionServer Metrics; file and heap sizes are in megabytes |
| Zookeeper Quorum | <% regionServer.getZooKeeper().getQuorum() %> | Addresses of all registered ZK servers |
| Coprocessors | -- <% java.util.Arrays.toString(regionServer.getCoprocessors()) %> - | -Coprocessors currently loaded by this regionserver |
| RS Start Time | <% new Date(regionServer.getStartcode()) %> | Date stamp of when this region server was started |
| HBase Master | -<%if (masterInfoPort < 0) %> -No hbase.master.info.port found -<%else> -<%java> -String host = regionServer.getMasterAddressManager().getMasterAddress().getHostname() + ":" + masterInfoPort; -String url = "http://" + host + "/"; -%java> -<% host %> -%if> - | Address of HBase Master |
| Region Name | Start Key | End Key | Metrics |
|---|---|---|---|
| <% r.getRegionNameAsString() %> | -<% Bytes.toStringBinary(r.getStartKey()) %> | <% Bytes.toStringBinary(r.getEndKey()) %> | -<% load == null? "null": load.toString() %> | -
Region names are made of the containing table's name, a comma, -the start key, a comma, and a randomly generated region id. To illustrate, -the region named -domains,apache.org,5464829424211263407 is party to the table -domains, has an id of 5464829424211263407 and the first key -in the region is apache.org. The -ROOT- -and .META. 'tables' are internal sytem tables (or 'catalog' tables in db-speak). -The -ROOT- keeps a list of all regions in the .META. table. The .META. table -keeps a list of all regions in the system. The empty key is used to denote -table start and table end. A region with an empty start key is the first region in a table. -If region has both an empty start and an empty end key, its the only region in the table. See -HBase Home for further explication.
-<%else> -
Not serving regions
-%if> +
+ | Attribute Name | +Value | +Description | +
|---|---|---|
| HBase Version | +<% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %> | +HBase version and revision | +
| HBase Compiled | +<% org.apache.hadoop.hbase.util.VersionInfo.getDate() %>, <% org.apache.hadoop.hbase.util.VersionInfo.getUser() %> | +When HBase version was compiled and by whom | +
| Zookeeper Quorum | +<% regionServer.getZooKeeper().getQuorum() %> | +Addresses of all registered ZK servers | +
| Coprocessors | +<% java.util.Arrays.toString(regionServer.getCoprocessors()) %> | +Coprocessors currently loaded by this regionserver | +
| RS Start Time | +<% new Date(regionServer.getStartcode()) %> | +Date stamp of when this region server was started | +
| HBase Master | ++ <%if (masterInfoPort < 0) %> + No hbase.master.info.port found + <%else> + <%java> + String host = regionServer.getMasterAddressManager().getMasterAddress().getHostname() + ":" + masterInfoPort; + String url = "http://" + host + "/"; + %java> + <% host %> + %if> + | +Address of HBase Master | +
| Requests Per Second | +Num. Regions | +Block locality | +Slow HLog Append Count | +
|---|---|---|---|
| <% metrics.requests.getPreviousIntervalValue() %> | +<% metrics.regions.get() %> | +<% metrics.hdfsBlocksLocalityIndex.get() %> | +<% metrics.slowHLogAppendCount.get() %> | +
| Used Heap | +Max Heap | +Memstore Size | +
|---|---|---|
| + <% ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() / (1024*1024) %>MB + | ++ <% ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getMax() / (1024*1024) %>MB + | +<% metrics.memstoreSizeMB.get()%>MB | +
| Num. Stores | +Num. Storefiles | +Root Index Size | +Index Size | +Bloom Size | +
|---|---|---|---|---|
| <% metrics.stores.get() %> | +<% metrics.storefiles.get() %> | +<% metrics.rootIndexSizeKB.get() %>KB | +<% metrics.totalStaticIndexSizeKB.get() %>KB | +<% metrics.totalStaticBloomSizeKB.get() %>KB | +
| Request Per Second | +Read Request Count | +Write Request Count | +
|---|---|---|
| <% metrics.requests.getPreviousIntervalValue() %> | +<% metrics.readRequestsCount.get() %> | +<% metrics.writeRequestsCount.get() %>KB | +
| Compaction queue size | +Flush queue size | + +
|---|---|
| <% metrics.compactionQueueSize.get() %> | +<% metrics.flushQueueSize.get() %>KB | +
| Cache Size | +Cache Free | +Cache Count | +Cache Hits | +Cache Misses | +Cache Hit Ratio | +Cache Eviction Count | + +
|---|---|---|---|---|---|---|
| <% metrics.blockCacheSize.get() / (1024*1024) %>MB | +<% metrics.blockCacheFree.get() / (1024 * 1024) %>MB | +<% metrics.blockCacheCount.get()%> | +<% metrics.blockCacheHitCount.get()%> | +<% metrics.blockCacheMissCount.get()%> | +<% metrics.blockCacheHitRatio.get()%>% | +<% metrics.blockCacheEvictedCount.get()%> | +
| Operation | +Count | +Mean | +Median | +75th | +95th | +99th | +99.9th | + +
|---|
-| Attribute Name | Value | Description |
|---|---|---|
| HBase Version | <% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %> | HBase version and revision |
| HBase Compiled | <% org.apache.hadoop.hbase.util.VersionInfo.getDate() %>, <% org.apache.hadoop.hbase.util.VersionInfo.getUser() %> | When HBase version was compiled and by whom |
| Hadoop Version | <% org.apache.hadoop.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.util.VersionInfo.getRevision() %> | Hadoop version and revision |
| Hadoop Compiled | <% org.apache.hadoop.util.VersionInfo.getDate() %>, <% org.apache.hadoop.util.VersionInfo.getUser() %> | When Hadoop version was compiled and by whom |
| HBase Root Directory | <% FSUtils.getRootDir(master.getConfiguration()).toString() %> | Location of HBase home directory |
| HBase Cluster ID | <% master.getClusterId() != null ? master.getClusterId() : "Not set" %> | Unique identifier generated for each HBase cluster |
| Load average | <% StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad()) %> | Average number of regions per regionserver. Naive computation. |
| Fragmentation | <% frags.get("-TOTAL-") != null ? frags.get("-TOTAL-").intValue() + "%" : "n/a" %> | Overall fragmentation of all tables, including .META. and -ROOT-. |
| Zookeeper Quorum | <% master.getZooKeeperWatcher().getQuorum() %> | Addresses of all registered ZK servers. For more, see zk dump. |
| - Coprocessors | <% java.util.Arrays.toString(master.getCoprocessors()) %> - | -Coprocessors currently loaded loaded by the master | -
| HMaster Start Time | <% new Date(master.getMasterStartTime()) %> | Date stamp of when this HMaster was started |
| HMaster Active Time | <% new Date(master.getMasterActiveTime()) %> | Date stamp of when this HMaster became active |
+ | Attribute Name | +Value | +Description | +
|---|---|---|
| HBase Version | +<% org.apache.hadoop.hbase.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.hbase.util.VersionInfo.getRevision() %> | HBase version and revision | +
| HBase Compiled | +<% org.apache.hadoop.hbase.util.VersionInfo.getDate() %>, <% org.apache.hadoop.hbase.util.VersionInfo.getUser() %> | +When HBase version was compiled and by whom | +
| Hadoop Version | +<% org.apache.hadoop.util.VersionInfo.getVersion() %>, r<% org.apache.hadoop.util.VersionInfo.getRevision() %> | +Hadoop version and revision | +
| Hadoop Compiled | +<% org.apache.hadoop.util.VersionInfo.getDate() %>, <% org.apache.hadoop.util.VersionInfo.getUser() %> | +When Hadoop version was compiled and by whom | +
| HBase Root Directory | +<% FSUtils.getRootDir(master.getConfiguration()).toString() %> | +Location of HBase home directory | +
| HBase Cluster ID | +<% master.getClusterId() != null ? master.getClusterId() : "Not set" %> | +Unique identifier generated for each HBase cluster | +
| Load average | +<% StringUtils.limitDecimalTo2(master.getServerManager().getAverageLoad()) %> | +Average number of regions per regionserver. Naive computation. | +
| Fragmentation | +<% frags.get("-TOTAL-") != null ? frags.get("-TOTAL-").intValue() + "%" : "n/a" %> | +Overall fragmentation of all tables, including .META. and -ROOT-. | +
| Zookeeper Quorum | +<% master.getZooKeeperWatcher().getQuorum() %> | +Addresses of all registered ZK servers. For more, see zk dump. | +
| Coprocessors | +<% java.util.Arrays.toString(master.getCoprocessors()) %> | +Coprocessors currently loaded loaded by the master | +
| HMaster Start Time | +<% new Date(master.getMasterStartTime()) %> | +Date stamp of when this HMaster was started | +
| HMaster Active Time | +<% new Date(master.getMasterActiveTime()) %> | +Date stamp of when this HMaster became active | +
| Catalog Table | +Table Name | <%if (frags != null) %>Frag. | %if> @@ -161,7 +265,7 @@ %if>The .META. table holds references to all User Table regions |
|---|
| User Table | -<%if (frags != null) %> -Frag. | -%if> -Description | -|||||
|---|---|---|---|---|---|---|---|
| ><% htDesc.getNameAsString() %> | - <%if (frags != null) %> -<% frags.get(htDesc.getNameAsString()) != null ? frags.get(htDesc.getNameAsString()).intValue() + "%" : "n/a" %> | - %if> -<% htDesc.toStringCustomizedValues() %> | -
| Table Name | + <%if (frags != null) %> +Frag. | + %if> +Description | +
|---|---|---|
| ><% htDesc.getNameAsString() %> | + <%if (frags != null) %> +<% frags.get(htDesc.getNameAsString()) != null ? frags.get(htDesc.getNameAsString()).intValue() + "%" : "n/a" %> | + %if> +<% htDesc.toStringCustomizedValues() %> | +
| ServerName | Start time | Load | |
|---|---|---|---|
| <% serverName %> | <% new Date(startcode) %> | <% loadStr %> | |
| Total: | servers: <% servers.size() %> | requestsPerSecond=<% totalRequests %>, numberOfOnlineRegions=<% totalRegions %> |
Load is requests per second and count of regions loaded
-%if> -%def> +<%def deadRegionServers> -<%def deadRegionServers> -| ServerName | |||||||
|---|---|---|---|---|---|---|---|
| <% deadServerName %> | |||||||
| Total: | servers: <% deadServers.size() %> |
| + | ServerName | +
|---|---|
| <% deadServerName %> | +|
| Total: | +servers: <% deadServers.size() %> | +
| ServerName | +Start time | +Requests Per Second | +Num. Regions | +
|---|---|---|---|
| <& serverNameLink; serverName=serverName; &> | +<% new Date(startcode) %> | +<% requestsPerSecond %> | +<% numRegionsOnline %> | +
| Total:<% servers.size() %> | ++ | <% totalRequests %> | +<% totalRegions %> | +
| ServerName | +Used Heap | +Max Heap | +Memstore Size | + +
|---|---|---|---|
| <& serverNameLink; serverName=serverName; &> | +<% sl.getUsedHeapMB() %>MB | +<% sl.getMaxHeapMB() %>MB | +<% sl.getMemstoreSizeMB() %>MB | + +
| ServerName | +Request Per Second | +Read Request Count | +Write Request Count | +
|---|---|---|---|
| <& serverNameLink; serverName=serverName; &> | +<% sl.getRequestsPerSecond() %> | +<% sl.getReadRequestsCount() %> | +<% sl.getWriteRequestsCount() %> | +
| ServerName | +Num. Stores | +Num. Storefiles | +Storefile Size Uncompressed | +Storefile Size | +Index Size | +Bloom Size | +
|---|---|---|---|---|---|---|
| <& serverNameLink; serverName=serverName; &> | +<% sl.getStores() %> | +<% sl.getStorefiles() %> | +<% sl.getStoreUncompressedSizeMB() %>MB | +<% sl.getStorefileSizeMB() %>MB | +<% sl.getTotalStaticIndexSizeKB() %>KB | +<% sl.getTotalStaticBloomSizeKB() %>KB | +
| ServerName | +Num. Compacting KVs | +Num. Compacted KVs | +Compaction Progress | +
|---|---|---|---|
| <& serverNameLink; serverName=serverName; &> | +<% sl.getTotalCompactingKVs() %> | +<% sl.getCurrentCompactedKVs() %> | +<% percentDone %> | +
| Region | State | RIT time (ms) |
|---|---|---|
| <% entry.getKey() %> | <% entry.getValue().toDescriptiveString() %> | -<% (currentTime - entry.getValue().getStamp()) %> |
| Total number of Regions in Transition for more than <% ritThreshold %> milliseconds | <% numOfRITOverThreshold %> | - |
| Total number of Regions in Transition | <% rit.size() %> | - |
| Region | State | RIT time (ms) |
|---|---|---|
| <% entry.getKey() %> | <% entry.getValue().toDescriptiveString() %> | +<% (currentTime - entry.getValue().getStamp()) %> |
| Total number of Regions in Transition for more than <% ritThreshold %> milliseconds | <% numOfRITOverThreshold %> | + |
| Total number of Regions in Transition | <% rit.size() %> | + |
+ | Table | Description | @@ -58,5 +101,6 @@
|---|
| Name | Region Server | Start Key | End Key | Requests |
|---|
| Name | Region Server | Start Key | End Key | Requests | |||
|---|---|---|---|---|---|---|---|
| <%= meta.getRegionNameAsString() %> | <%= metaLocation.getHostname().toString() + ":" + infoPort %> | -- | <%= Bytes.toString(meta.getStartKey()) %> | <%= Bytes.toString(meta.getEndKey()) %> | +- | +<%= Bytes.toString(meta.getStartKey()) %> | +<%= Bytes.toString(meta.getEndKey()) %> |
- + <% } %>