|
18 | 18 | */
|
19 | 19 | --%>
|
20 | 20 | <%@ page contentType="text/html;charset=UTF-8"
|
21 |
| - import="java.net.URLEncoder" |
22 | 21 | import="java.util.Collection"
|
23 | 22 | import="java.util.Date"
|
24 | 23 | 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" |
28 | 24 | import="org.apache.hadoop.hbase.client.RegionInfoDisplay"
|
29 |
| - import="org.apache.hadoop.hbase.mob.MobUtils" |
30 | 25 | import="org.apache.hadoop.hbase.regionserver.HRegionServer"
|
31 |
| - import="org.apache.hadoop.hbase.regionserver.HMobStore" |
32 |
| - import="org.apache.hadoop.hbase.regionserver.HStoreFile" |
33 | 26 | import="org.apache.hadoop.hbase.regionserver.Region"
|
34 | 27 | import="org.apache.hadoop.hbase.regionserver.Store"
|
35 | 28 | import="org.apache.hadoop.hbase.regionserver.StoreFile"
|
|
87 | 80 |
|
88 | 81 | <p> <%= storeFiles.size() %> StoreFile(s) in set.</p>
|
89 | 82 | </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 | + <% } |
135 | 84 | }%>
|
136 | 85 | </div>
|
137 | 86 |
|
|
0 commit comments