Skip to content

Commit 41e5b6c

Browse files
authored
Revert "HBASE-26962: Add mob info in web UI (apache#4359)"
This reverts commit f4969ca.
1 parent 8b9e29c commit 41e5b6c

File tree

1 file changed

+1
-52
lines changed
  • hbase-server/src/main/resources/hbase-webapps/regionserver

1 file changed

+1
-52
lines changed

hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,11 @@
1818
*/
1919
--%>
2020
<%@ page contentType="text/html;charset=UTF-8"
21-
import="java.net.URLEncoder"
2221
import="java.util.Collection"
2322
import="java.util.Date"
2423
import="java.util.List"
25-
import="org.apache.hadoop.fs.FileStatus"
26-
import="org.apache.hadoop.fs.Path"
27-
import="org.apache.hadoop.hbase.HConstants"
2824
import="org.apache.hadoop.hbase.client.RegionInfoDisplay"
29-
import="org.apache.hadoop.hbase.mob.MobUtils"
3025
import="org.apache.hadoop.hbase.regionserver.HRegionServer"
31-
import="org.apache.hadoop.hbase.regionserver.HMobStore"
32-
import="org.apache.hadoop.hbase.regionserver.HStoreFile"
3326
import="org.apache.hadoop.hbase.regionserver.Region"
3427
import="org.apache.hadoop.hbase.regionserver.Store"
3528
import="org.apache.hadoop.hbase.regionserver.StoreFile"
@@ -87,51 +80,7 @@
8780

8881
<p> <%= storeFiles.size() %> StoreFile(s) in set.</p>
8982
</table>
90-
91-
<% if (store instanceof HMobStore) { %>
92-
<h4>MOB Files</h4>
93-
<table class="table table-striped">
94-
<tr>
95-
<th>MOB File</th>
96-
<th>Size (MB)</th>
97-
<th>Modification time</th>
98-
</tr>
99-
100-
<%
101-
int mobCnt = 0;
102-
for (StoreFile sf : storeFiles) {
103-
try {
104-
byte[] value = ((HStoreFile)sf).getMetadataValue(HStoreFile.MOB_FILE_REFS);
105-
if (value == null) {
106-
continue;
107-
}
108-
109-
Collection<String> fileNames = MobUtils.deserializeMobFileRefs(value).build().values();
110-
mobCnt += fileNames.size();
111-
for (String fileName : fileNames) {
112-
Path mobPath = new Path(((HMobStore) store).getPath(), fileName);
113-
FileStatus status = rs.getFileSystem().getFileStatus(mobPath);
114-
String mobPathStr = mobPath.toString();
115-
String encodedStr = URLEncoder.encode(mobPathStr, HConstants.UTF8_ENCODING); %>
116-
117-
<tr>
118-
<td><a href="storeFile.jsp?name=<%= encodedStr%>"><%= mobPathStr%></a></td>
119-
<td><%= status.getLen() / 1024 / 1024 %></td>
120-
<td><%= new Date(status.getModificationTime()) %></td>
121-
</tr>
122-
123-
<% }
124-
} catch (Exception e) { %>
125-
<tr>
126-
<td><%= e %></td>
127-
</tr>
128-
<% }
129-
} %>
130-
131-
<p> <%= mobCnt %> MobFile(s) in set.</p>
132-
</table>
133-
<% }
134-
}
83+
<% }
13584
}%>
13685
</div>
13786

0 commit comments

Comments
 (0)