|
19 | 19 | --%>
|
20 | 20 | <%@ page contentType="text/html;charset=UTF-8"
|
21 | 21 | import="org.apache.hadoop.conf.Configuration"
|
22 |
| - import="org.apache.hadoop.hbase.HBaseConfiguration" |
23 | 22 | import="org.apache.hadoop.hbase.util.VersionInfo"
|
24 | 23 | import="java.util.Date"
|
25 | 24 | %>
|
26 | 25 | <%@ page import="org.apache.hadoop.hbase.thrift.ImplType" %>
|
27 | 26 | <%@ page import="org.apache.hadoop.hbase.util.JvmVersion" %>
|
28 | 27 |
|
29 | 28 | <%
|
30 |
| -Configuration conf = (Configuration)getServletContext().getAttribute("hbase.conf"); |
31 |
| -String serverType = (String)getServletContext().getAttribute("hbase.thrift.server.type"); |
32 |
| -long startcode = conf.getLong("startcode", System.currentTimeMillis()); |
33 |
| -String listenPort = conf.get("hbase.regionserver.thrift.port", "9090"); |
34 |
| -ImplType implType = ImplType.getServerImpl(conf); |
| 29 | + Configuration conf = (Configuration)getServletContext().getAttribute("hbase.conf"); |
| 30 | + String serverType = (String)getServletContext().getAttribute("hbase.thrift.server.type"); |
| 31 | + long startcode = conf.getLong("startcode", System.currentTimeMillis()); |
| 32 | + String listenPort = conf.get("hbase.regionserver.thrift.port", "9090"); |
| 33 | + ImplType implType = ImplType.getServerImpl(conf); |
35 | 34 |
|
36 |
| -String transport = |
37 |
| - (implType.isAlwaysFramed() || |
38 |
| - conf.getBoolean("hbase.regionserver.thrift.framed", false)) ? "Framed" : "Standard"; |
39 |
| -String protocol = |
40 |
| - conf.getBoolean("hbase.regionserver.thrift.compact", false) ? "Compact" : "Binary"; |
41 |
| -String qop = conf.get("hbase.thrift.security.qop", "None"); |
| 35 | + String transport = |
| 36 | + (implType.isAlwaysFramed() || |
| 37 | + conf.getBoolean("hbase.regionserver.thrift.framed", false)) ? "Framed" : "Standard"; |
| 38 | + String protocol = |
| 39 | + conf.getBoolean("hbase.regionserver.thrift.compact", false) ? "Compact" : "Binary"; |
| 40 | + String qop = conf.get("hbase.thrift.security.qop", "None"); |
42 | 41 |
|
| 42 | + pageContext.setAttribute("pageTitle", "HBase Thrift Server: " + listenPort); |
43 | 43 | %>
|
44 |
| -<!DOCTYPE html> |
45 |
| -<?xml version="1.0" encoding="UTF-8" ?> |
46 |
| -<html lang="en"> |
47 |
| - <head> |
48 |
| - <meta charset="utf-8"> |
49 |
| - <title>HBase Thrift Server: <%= listenPort %></title> |
50 |
| - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
51 |
| - <meta name="description" content=""> |
52 | 44 |
|
53 |
| - <link href="/static/css/bootstrap.min.css" rel="stylesheet"> |
54 |
| - <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet"> |
55 |
| - <link href="/static/css/hbase.css" rel="stylesheet"> |
56 |
| - </head> |
57 |
| - |
58 |
| - <body> |
59 |
| - <div class="navbar navbar-fixed-top navbar-default"> |
60 |
| - <div class="container-fluid"> |
61 |
| - <div class="navbar-header"> |
62 |
| - <button type="button" |
63 |
| - class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
64 |
| - <span class="icon-bar"></span> |
65 |
| - <span class="icon-bar"></span> |
66 |
| - <span class="icon-bar"></span> |
67 |
| - </button> |
68 |
| - <a class="navbar-brand" href="/thrift.jsp"> |
69 |
| - <img src="/static/hbase_logo_small.png" alt="HBase Logo"/> |
70 |
| - </a> |
71 |
| - </div> |
72 |
| - <div class="collapse navbar-collapse"> |
73 |
| - <ul class="nav navbar-nav"> |
74 |
| - <li class="active"><a href="/">Home</a></li> |
75 |
| - <li><a href="/logs/">Local logs</a></li> |
76 |
| - <li><a href="/logLevel">Log Level</a></li> |
77 |
| - <li class="nav-item dropdown"> |
78 |
| - <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
79 |
| - Metrics <span class="caret"></span> |
80 |
| - </a> |
81 |
| - <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> |
82 |
| - <li><a target="_blank" href="/jmx">JMX</a></li> |
83 |
| - <li><a target="_blank" href="/jmx?description=true">JMX with description</a></li> |
84 |
| - <li><a target="_blank" href="/prometheus">Prometheus</a></li> |
85 |
| - <li><a target="_blank" href="/prometheus?description=true">Prometheus with description</a></li> |
86 |
| - </ul> |
87 |
| - </li> |
88 |
| - <li><a href="/prof">Profiler</a></li> |
89 |
| - <% if (HBaseConfiguration.isShowConfInServlet()) { %> |
90 |
| - <li><a href="/conf">HBase Configuration</a></li> |
91 |
| - <% } %> |
92 |
| - </ul> |
93 |
| - </div><!--/.nav-collapse --> |
94 |
| - </div> |
95 |
| - </div> |
| 45 | +<jsp:include page="header.jsp"> |
| 46 | + <jsp:param name="pageTitle" value="${pageTitle}"/> |
| 47 | +</jsp:include> |
96 | 48 |
|
97 | 49 | <div class="container-fluid content">
|
98 | 50 | <div class="row inner_header">
|
@@ -165,8 +117,5 @@ String qop = conf.get("hbase.thrift.security.qop", "None");
|
165 | 117 | </section>
|
166 | 118 | </div>
|
167 | 119 | </div>
|
168 |
| -<script src="/static/js/jquery.min.js" type="text/javascript"></script> |
169 |
| -<script src="/static/js/bootstrap.min.js" type="text/javascript"></script> |
170 |
| -<script src="/static/js/tab.js" type="text/javascript"></script> |
171 |
| -</body> |
172 |
| -</html> |
| 120 | + |
| 121 | +<jsp:include page="footer.jsp" /> |
0 commit comments