<%@ page contentType="text/html;charset=UTF-8" import="java.util.List" import="org.apache.hadoop.hbase.RegionHistorian" import="org.apache.hadoop.hbase.master.HMaster" import="org.apache.hadoop.hbase.RegionHistorian.RegionHistoryInformation" import="org.apache.hadoop.hbase.HConstants"%><% String regionName = request.getParameter("regionname"); HMaster master = (HMaster)getServletContext().getAttribute(HMaster.MASTER); List informations = RegionHistorian.getInstance().getRegionHistory(regionName); %> Region in <%= regionName %>

Region <%= regionName %>


<%if(informations != null && informations.size() > 0) { %> <% for( RegionHistoryInformation information : informations) {%> <% } %>
TimestampEventDescription
<%= information.getTimestampAsString() %><%= information.getEvent() %><%= information.getDescription()%>

Master is the source of following events: creation, open, and assignment. Regions are the source of following events: split, compaction, and flush.

<%} else {%>

This region is no longer available. It may be due to a split, a merge or the name changed.

<%} %>