You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by hu...@apache.org on 2022/06/02 21:09:10 UTC
[hbase] branch branch-2 updated: Revert "HBASE-26962: Add mob info in web UI (#4359)"
This is an automated email from the ASF dual-hosted git repository.
huaxiangsun pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 58aaed19b04 Revert "HBASE-26962: Add mob info in web UI (#4359)"
58aaed19b04 is described below
commit 58aaed19b04abd17a35519d522c3e6086bd32902
Author: Huaxiang Sun <hu...@apache.com>
AuthorDate: Thu Jun 2 14:04:27 2022 -0700
Revert "HBASE-26962: Add mob info in web UI (#4359)"
This reverts commit 7a02cbfd7ee6418594a1cd241e10b54a0c837e23.
---
.../hbase-webapps/regionserver/region.jsp | 53 +---------------------
1 file changed, 1 insertion(+), 52 deletions(-)
diff --git a/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp b/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp
index 72bc638202f..382783ea4ba 100644
--- a/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/regionserver/region.jsp
@@ -18,18 +18,11 @@
*/
--%>
<%@ page contentType="text/html;charset=UTF-8"
- import="java.net.URLEncoder"
import="java.util.Collection"
import="java.util.Date"
import="java.util.List"
- import="org.apache.hadoop.fs.FileStatus"
- import="org.apache.hadoop.fs.Path"
- import="org.apache.hadoop.hbase.HConstants"
import="org.apache.hadoop.hbase.client.RegionInfoDisplay"
- import="org.apache.hadoop.hbase.mob.MobUtils"
import="org.apache.hadoop.hbase.regionserver.HRegionServer"
- import="org.apache.hadoop.hbase.regionserver.HMobStore"
- import="org.apache.hadoop.hbase.regionserver.HStoreFile"
import="org.apache.hadoop.hbase.regionserver.Region"
import="org.apache.hadoop.hbase.regionserver.Store"
import="org.apache.hadoop.hbase.regionserver.StoreFile"
@@ -87,51 +80,7 @@
<p> <%= storeFiles.size() %> StoreFile(s) in set.</p>
</table>
-
- <% if (store instanceof HMobStore) { %>
- <h4>MOB Files</h4>
- <table class="table table-striped">
- <tr>
- <th>MOB File</th>
- <th>Size (MB)</th>
- <th>Modification time</th>
- </tr>
-
- <%
- int mobCnt = 0;
- for (StoreFile sf : storeFiles) {
- try {
- byte[] value = ((HStoreFile)sf).getMetadataValue(HStoreFile.MOB_FILE_REFS);
- if (value == null) {
- continue;
- }
-
- Collection<String> fileNames = MobUtils.deserializeMobFileRefs(value).build().values();
- mobCnt += fileNames.size();
- for (String fileName : fileNames) {
- Path mobPath = new Path(((HMobStore) store).getPath(), fileName);
- FileStatus status = rs.getFileSystem().getFileStatus(mobPath);
- String mobPathStr = mobPath.toString();
- String encodedStr = URLEncoder.encode(mobPathStr, HConstants.UTF8_ENCODING); %>
-
- <tr>
- <td><a href="storeFile.jsp?name=<%= encodedStr%>"><%= mobPathStr%></a></td>
- <td><%= status.getLen() / 1024 / 1024 %></td>
- <td><%= new Date(status.getModificationTime()) %></td>
- </tr>
-
- <% }
- } catch (Exception e) { %>
- <tr>
- <td><%= e %></td>
- </tr>
- <% }
- } %>
-
- <p> <%= mobCnt %> MobFile(s) in set.</p>
- </table>
- <% }
- }
+ <% }
}%>
</div>