3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 <%@ page contentType
="text/html;charset=UTF-8"
21 import="org.apache.hadoop.conf.Configuration"
22 import="org.apache.hadoop.hbase.HBaseConfiguration"
23 import="org.apache.hadoop.hbase.util.VersionInfo"
24 import="java.util.Date"%>
26 Configuration conf
= (Configuration
)getServletContext().getAttribute("hbase.conf");
27 long startcode
= conf
.getLong("startcode", System
.currentTimeMillis());
28 String listenPort
= conf
.get("hbase.rest.port", "8080");
31 <?xml version=
"1.0" encoding=
"UTF-8" ?>
34 <meta charset=
"utf-8">
35 <title>HBase REST Server: <%= listenPort
%></title>
36 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
37 <meta name=
"description" content=
"">
39 <link href=
"/static/css/bootstrap.min.css" rel=
"stylesheet">
40 <link href=
"/static/css/bootstrap-theme.min.css" rel=
"stylesheet">
41 <link href=
"/static/css/hbase.css" rel=
"stylesheet">
45 <div class=
"navbar navbar-fixed-top navbar-default">
46 <div class=
"container-fluid">
47 <div class=
"navbar-header">
48 <button type=
"button" class=
"navbar-toggle" data-toggle=
"collapse" data-target=
".navbar-collapse">
49 <span class=
"icon-bar"></span>
50 <span class=
"icon-bar"></span>
51 <span class=
"icon-bar"></span>
53 <a class=
"navbar-brand" href=
"/rest.jsp"><img src=
"/static/hbase_logo_small.png" alt=
"HBase Logo"/></a>
55 <div class=
"collapse navbar-collapse">
56 <ul class=
"nav navbar-nav">
57 <li class=
"active"><a href=
"/rest.jsp">Home
</a></li>
58 <li><a href=
"/logs/">Local logs
</a></li>
59 <li><a href=
"/logLevel">Log Level
</a></li>
60 <li><a href=
"/jmx">Metrics Dump
</a></li>
61 <li><a href=
"/prof">Profiler
</a></li>
62 <%
if (HBaseConfiguration
.isShowConfInServlet()) { %>
63 <li><a href=
"/conf">HBase Configuration
</a></li>
66 </div><!--/.nav-collapse -->
70 <div class=
"container-fluid content">
71 <div class=
"row inner_header">
72 <div class=
"page-header">
73 <h1>RESTServer
<small><%= listenPort
%></small></h1>
79 <h2>Software Attributes
</h2>
80 <table id=
"attributes_table" class=
"table table-striped">
82 <th>Attribute Name
</th>
87 <td>HBase Version
</td>
88 <td><%= VersionInfo
.getVersion() %>, revision=<%= VersionInfo.getRevision() %
></td>
89 <td>HBase version and revision
</td>
92 <td>HBase Compiled
</td>
93 <td><%= VersionInfo
.getDate() %>, <%= VersionInfo.getUser() %
></td>
94 <td>When HBase version was compiled and by whom
</td>
97 <td>REST Server Start Time
</td>
98 <td><%=
new Date(startcode
) %></td>
99 <td>Date stamp of when this REST server was started
</td>
107 <a href=
"http://hbase.apache.org/book.html#_rest">Apache HBase documentation about REST
</a>
111 <script src=
"/static/js/jquery.min.js" type=
"text/javascript"></script>
112 <script src=
"/static/js/bootstrap.min.js" type=
"text/javascript"></script>
113 <script src=
"/static/js/tab.js" type=
"text/javascript"></script>