1<%-- 2/** 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 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 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. 18 */ 19--%> 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"%> 25<% 26Configuration conf = (Configuration)getServletContext().getAttribute("hbase.conf"); 27long startcode = conf.getLong("startcode", System.currentTimeMillis()); 28String listenPort = conf.get("hbase.rest.port", "8080"); 29%> 30<!--[if IE]> 31<!DOCTYPE html> 32<![endif]--> 33<?xml version="1.0" encoding="UTF-8" ?> 34<html lang="en"> 35 <head> 36 <meta charset="utf-8"> 37 <title>HBase REST Server: <%= listenPort %></title> 38 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 39 <meta name="description" content=""> 40 41 <link href="/static/css/bootstrap.min.css" rel="stylesheet"> 42 <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet"> 43 <link href="/static/css/hbase.css" rel="stylesheet"> 44 </head> 45 46 <body> 47 <div class="navbar navbar-fixed-top navbar-default"> 48 <div class="container-fluid"> 49 <div class="navbar-header"> 50 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> 51 <span class="icon-bar"></span> 52 <span class="icon-bar"></span> 53 <span class="icon-bar"></span> 54 </button> 55 <a class="navbar-brand" href="/rest.jsp"><img src="/static/hbase_logo_small.png" alt="HBase Logo"/></a> 56 </div> 57 <div class="collapse navbar-collapse"> 58 <ul class="nav navbar-nav"> 59 <li class="active"><a href="/rest.jsp">Home</a></li> 60 <li><a href="/logs/">Local logs</a></li> 61 <li><a href="/logLevel">Log Level</a></li> 62 <li><a href="/jmx">Metrics Dump</a></li> 63 <% if (HBaseConfiguration.isShowConfInServlet()) { %> 64 <li><a href="/conf">HBase Configuration</a></li> 65 <% } %> 66 </ul> 67 </div><!--/.nav-collapse --> 68 </div> 69 </div> 70 71<div class="container-fluid content"> 72 <div class="row inner_header"> 73 <div class="page-header"> 74 <h1>RESTServer <small><%= listenPort %></small></h1> 75 </div> 76 </div> 77 <div class="row"> 78 79 <section> 80 <h2>Software Attributes</h2> 81 <table id="attributes_table" class="table table-striped"> 82 <tr> 83 <th>Attribute Name</th> 84 <th>Value</th> 85 <th>Description</th> 86 </tr> 87 <tr> 88 <td>HBase Version</td> 89 <td><%= VersionInfo.getVersion() %>, revision=<%= VersionInfo.getRevision() %></td> 90 <td>HBase version and revision</td> 91 </tr> 92 <tr> 93 <td>HBase Compiled</td> 94 <td><%= VersionInfo.getDate() %>, <%= VersionInfo.getUser() %></td> 95 <td>When HBase version was compiled and by whom</td> 96 </tr> 97 <tr> 98 <td>REST Server Start Time</td> 99 <td><%= new Date(startcode) %></td> 100 <td>Date stamp of when this REST server was started</td> 101 </tr> 102 </table> 103 </section> 104 </div> 105 <div class="row"> 106 107 <section> 108<a href="http://wiki.apache.org/hadoop/Hbase/Stargate">Apache HBase Wiki on REST</a> 109 </section> 110 </div> 111</div> 112<script src="/static/js/jquery.min.js" type="text/javascript"></script> 113<script src="/static/js/bootstrap.min.js" type="text/javascript"></script> 114<script src="/static/js/tab.js" type="text/javascript"></script> 115</body> 116</html> 117 118