File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
hbase-server/src/main/resources/hbase-webapps/regionserver Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
import =" java.io.ByteArrayOutputStream"
22
22
import =" java.io.PrintStream"
23
23
import =" org.apache.hadoop.conf.Configuration"
24
+ import =" org.apache.hadoop.fs.FileSystem"
24
25
import =" org.apache.hadoop.fs.Path"
25
26
import =" org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter"
26
27
import =" org.apache.hadoop.hbase.regionserver.HRegionServer"
28
+ import =" org.apache.hadoop.hbase.regionserver.StoreFileInfo"
27
29
%>
28
30
<%
29
31
String storeFile = request. getParameter(" name" );
30
32
HRegionServer rs = (HRegionServer ) getServletContext(). getAttribute(HRegionServer . REGIONSERVER );
31
33
Configuration conf = rs. getConfiguration();
34
+ FileSystem fs = FileSystem . get(conf);
32
35
pageContext. setAttribute(" pageTitle" , " HBase RegionServer: " + rs. getServerName());
33
36
% >
34
37
<jsp:include page =" header.jsp" >
51
54
printer. setConf(conf);
52
55
String [] options = {" -s" };
53
56
printer. parseOptions(options);
54
- printer. processFile(new Path (storeFile), true );
57
+ StoreFileInfo sfi = new StoreFileInfo (conf, fs, new Path (storeFile), true );
58
+ printer. processFile(sfi. getFileStatus(). getPath(), true );
55
59
String text = byteStream. toString(); % >
56
60
<%=
57
61
text
You can’t perform that action at this time.
0 commit comments