HADOOP-2035 Add logo to webapps
git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@583946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
642dd4294e
commit
00f32814d1
|
@ -98,6 +98,7 @@ Trunk (unreleased changes)
|
||||||
HADOOP-1789 Output formatting
|
HADOOP-1789 Output formatting
|
||||||
HADOOP-1960 If a region server cannot talk to the master before its lease
|
HADOOP-1960 If a region server cannot talk to the master before its lease
|
||||||
times out, it should shut itself down
|
times out, it should shut itself down
|
||||||
|
HADOOP-2035 Add logo to webapps
|
||||||
|
|
||||||
|
|
||||||
Below are the list of changes before 2007-08-18
|
Below are the list of changes before 2007-08-18
|
||||||
|
|
|
@ -46,7 +46,7 @@ public final class hql_jsp extends org.apache.jasper.runtime.HttpJspBase
|
||||||
out = pageContext.getOut();
|
out = pageContext.getOut();
|
||||||
_jspx_out = out;
|
_jspx_out = out;
|
||||||
|
|
||||||
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>HQL</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n<h1><a href=\"http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell\">HQL</a></h1>\n<p><a href=\"/master.jsp\">Home</a></p>\n");
|
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>HQL</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n<a id=\"logo\" href=\"http://wiki.apache.org/lucene-hadoop/Hbase\"><img src=\"/static/hbase_logo_med.gif\" alt=\"Hbase Logo\" title=\"Hbase Logo\" /></a>\n<h1 id=\"page_title\"><a href=\"http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell\">HQL</a></h1>\n<p id=\"links_menu\"><a href=\"/master.jsp\">Home</a></p>\n<hr id=\"head_rule\" />\n");
|
||||||
String query = request.getParameter("q");
|
String query = request.getParameter("q");
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
query = "";
|
query = "";
|
||||||
|
|
|
@ -66,9 +66,9 @@ public final class master_jsp extends org.apache.jasper.runtime.HttpJspBase
|
||||||
|
|
||||||
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>Hbase Master: ");
|
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>Hbase Master: ");
|
||||||
out.print( master.getMasterAddress());
|
out.print( master.getMasterAddress());
|
||||||
out.write("</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n<h1><a href=\"http://wiki.apache.org/lucene-hadoop/Hbase\">Hbase</a> Master: ");
|
out.write("</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n\n<a id=\"logo\" href=\"http://wiki.apache.org/lucene-hadoop/Hbase\"><img src=\"/static/hbase_logo_med.gif\" alt=\"Hbase Logo\" title=\"Hbase Logo\" /></a>\n<h1 id=\"page_title\">Master: ");
|
||||||
out.print(master.getMasterAddress());
|
out.print(master.getMasterAddress());
|
||||||
out.write("</h1>\n<p><a href=\"/hql.jsp\">HQL</a>,\n<a href=\"/logs/\">Local logs</a>, <a href=\"/stacks\">Thread Dump</a></p>\n\n<h2>Master Attributes</h2>\n<table>\n<tr><th>Attribute Name</th><th>Value</th></tr>\n<tr><td>Filesystem</td><td>");
|
out.write("</h1>\n<p id=\"links_menu\"><a href=\"/hql.jsp\">HQL</a>, <a href=\"/logs/\">Local logs</a>, <a href=\"/stacks\">Thread Dump</a></p>\n<hr id=\"head_rule\" />\n\n<h2>Master Attributes</h2>\n<table>\n<tr><th>Attribute Name</th><th>Value</th></tr>\n<tr><td>Filesystem</td><td>");
|
||||||
out.print( conf.get("fs.default.name") );
|
out.print( conf.get("fs.default.name") );
|
||||||
out.write("</td></tr>\n<tr><td>Hbase Root Directory</td><td>");
|
out.write("</td></tr>\n<tr><td>Hbase Root Directory</td><td>");
|
||||||
out.print( master.getRootDir().toString() );
|
out.print( master.getRootDir().toString() );
|
||||||
|
@ -125,7 +125,7 @@ public final class master_jsp extends org.apache.jasper.runtime.HttpJspBase
|
||||||
}
|
}
|
||||||
out.write("\n</table>\n");
|
out.write("\n</table>\n");
|
||||||
}
|
}
|
||||||
out.write("\n</body>\n</html>");
|
out.write("\n</body>\n</html>\n");
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (!(t instanceof SkipPageException)){
|
if (!(t instanceof SkipPageException)){
|
||||||
out = _jspx_out;
|
out = _jspx_out;
|
||||||
|
|
|
@ -53,9 +53,9 @@ public final class regionserver_jsp extends org.apache.jasper.runtime.HttpJspBas
|
||||||
|
|
||||||
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>Hbase Region Server: ");
|
out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/>\n<title>Hbase Region Server: ");
|
||||||
out.print( serverInfo.getServerAddress().toString() );
|
out.print( serverInfo.getServerAddress().toString() );
|
||||||
out.write("</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n<h1><a href=\"http://wiki.apache.org/lucene-hadoop/Hbase\">Hbase</a> Region Server: ");
|
out.write("</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/hbase.css\" />\n</head>\n\n<body>\n<a id=\"logo\" href=\"http://wiki.apache.org/lucene-hadoop/Hbase\"><img src=\"/static/hbase_logo_med.gif\" alt=\"Hbase Logo\" title=\"Hbase Logo\" /></a>\n<h1 id=\"page_title\">Region Server: ");
|
||||||
out.print( serverInfo.getServerAddress().toString() );
|
out.print( serverInfo.getServerAddress().toString() );
|
||||||
out.write("</h1>\n<p><a href=\"/logs/\">Local logs</a>, <a href=\"/stacks\">Thread Dump</a></p>\n\n<h2>Region Server Attributes</h2>\n<table>\n<tr><th>Attribute Name</th><th>Value</th></tr>\n<tr><td>Load</td><td>");
|
out.write("</h1>\n<p id=\"links_menu\"><a href=\"/logs/\">Local logs</a>, <a href=\"/stacks\">Thread Dump</a></p>\n<hr id=\"head_rule\" />\n\n<h2>Region Server Attributes</h2>\n<table>\n<tr><th>Attribute Name</th><th>Value</th></tr>\n<tr><td>Load</td><td>");
|
||||||
out.print( serverInfo.getLoad().toString() );
|
out.print( serverInfo.getLoad().toString() );
|
||||||
out.write("</td></tr>\n</table>\n\n<h2>Online Regions</h2>\n");
|
out.write("</td></tr>\n</table>\n\n<h2>Online Regions</h2>\n");
|
||||||
if (onlineRegions != null && onlineRegions.size() > 0) {
|
if (onlineRegions != null && onlineRegions.size() > 0) {
|
||||||
|
@ -73,7 +73,7 @@ public final class regionserver_jsp extends org.apache.jasper.runtime.HttpJspBas
|
||||||
} else {
|
} else {
|
||||||
out.write("\n<p>Not serving regions</p>\n");
|
out.write("\n<p>Not serving regions</p>\n");
|
||||||
}
|
}
|
||||||
out.write("\n</body>\n</html>");
|
out.write("\n</body>\n</html>\n");
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (!(t instanceof SkipPageException)){
|
if (!(t instanceof SkipPageException)){
|
||||||
out = _jspx_out;
|
out = _jspx_out;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Provides HBase, the <a href="http://lucene.apache.org/hadoop">Hadoop</a>
|
Provides HBase, the <a href="http://lucene.apache.org/hadoop">Hadoop</a>
|
||||||
simple database.
|
simple database.
|
||||||
|
|
||||||
<h2>Requirements</h2>
|
<h2><a name="requirements">Requirements</a></h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Java 1.5.x, preferably from <a href="http://www.java.com/en/download/">Sun</a>.</li>
|
<li>Java 1.5.x, preferably from <a href="http://www.java.com/en/download/">Sun</a>.</li>
|
||||||
<li>HBase runs on top of <a href="http://lucene.apache.org/hadoop">Hadoop</a>. Hadoop has its own set of
|
<li>HBase runs on top of <a href="http://lucene.apache.org/hadoop">Hadoop</a>. Hadoop has its own set of
|
||||||
|
@ -15,7 +15,7 @@ requirements and instructions</a>. Make sure to set
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2>Getting Started</h2>
|
<h2><a name="getting_started" >Getting Started</a></h2>
|
||||||
<p>
|
<p>
|
||||||
Start by defining the following directory variables for your convenience:
|
Start by defining the following directory variables for your convenience:
|
||||||
</p>
|
</p>
|
||||||
|
@ -29,7 +29,7 @@ If you are running a standalone operation, proceed to <a href=#runandconfirm>Run
|
||||||
and Confirming Your Installation</a>. If you are running a distributed operation, continue below.
|
and Confirming Your Installation</a>. If you are running a distributed operation, continue below.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Distributed Operation</h2>
|
<h2><a name="distributed" >Distributed Operation</a></h2>
|
||||||
<p>
|
<p>
|
||||||
Make sure you have followed
|
Make sure you have followed
|
||||||
<a href="http://lucene.apache.org/hadoop/api/overview-summary.html#overview_description">
|
<a href="http://lucene.apache.org/hadoop/api/overview-summary.html#overview_description">
|
||||||
|
@ -63,14 +63,14 @@ The <code>regionserver</code> file lists all the hosts running HRegionServers, o
|
||||||
host per line (This file is synonymous to the slaves file at
|
host per line (This file is synonymous to the slaves file at
|
||||||
<code>${HADOOP_HOME}/conf/slaves</code>).
|
<code>${HADOOP_HOME}/conf/slaves</code>).
|
||||||
</p>
|
</p>
|
||||||
<h3>Additional Notes on Distributed Operation</h3>
|
<h3><a name="additional" >Additional Notes on Distributed Operation</a></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Hadoop and HBase must be set up on each host you plan to use.</li>
|
<li>Hadoop and HBase must be set up on each host you plan to use.</li>
|
||||||
<li>Additional (optional) HBase-specific variables such as HBASE_HEAPSIZE and HBASE_CLASSPATH
|
<li>Additional (optional) HBase-specific variables such as HBASE_HEAPSIZE and HBASE_CLASSPATH
|
||||||
can be set in <code>${HBASE_HOME}/conf/hbase-env.sh</code>.</li>
|
can be set in <code>${HBASE_HOME}/conf/hbase-env.sh</code>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2><a name="runandconfirm"/>Running and Confirming Your Installation</h2>
|
<h2><a name="runandconfirm">Running and Confirming Your Installation</a></h2>
|
||||||
<p>
|
<p>
|
||||||
If you are running a distributed operation you will need to start the Hadoop daemons
|
If you are running a distributed operation you will need to start the Hadoop daemons
|
||||||
before starting HBase and stop the daemons after HBase has shut down. Start and
|
before starting HBase and stop the daemons after HBase has shut down. Start and
|
||||||
|
@ -87,7 +87,7 @@ shell against HBase from which you can execute HBase commands. In the HBase she
|
||||||
<code>help;</code> to see a list of supported commands. Note that all commands in the HBase
|
<code>help;</code> to see a list of supported commands. Note that all commands in the HBase
|
||||||
shell must end with <code>;</code>. Test your installation by creating, viewing, and dropping
|
shell must end with <code>;</code>. Test your installation by creating, viewing, and dropping
|
||||||
a table, as per the help instructions. Be patient with the <code>create</code> and
|
a table, as per the help instructions. Be patient with the <code>create</code> and
|
||||||
<code>drop</code> operations as they may each take 30 seconds or more. To stop hbase, exit the
|
<code>drop</code> operations as they may each take 10 seconds or more. To stop hbase, exit the
|
||||||
HBase shell and enter:
|
HBase shell and enter:
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -100,8 +100,10 @@ before stopping the Hadoop daemons.
|
||||||
<p>
|
<p>
|
||||||
The default location for logs is <code>${HADOOP_HOME}/logs</code>.
|
The default location for logs is <code>${HADOOP_HOME}/logs</code>.
|
||||||
</p>
|
</p>
|
||||||
|
<p>HBase also puts up a UI listing vital attributes. By default its deployed on the master host
|
||||||
|
at port 60010.</p>
|
||||||
|
|
||||||
<h2>Related Documentation</h2>
|
<h2><a name="related" >Related Documentation</a></h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://wiki.apache.org/lucene-hadoop/Hbase">HBase Home Page</a>
|
<li><a href="http://wiki.apache.org/lucene-hadoop/Hbase">HBase Home Page</a>
|
||||||
<li><a href="http://wiki.apache.org/lucene-hadoop/Hbase/HbaseArchitecture">HBase Architecture</a>
|
<li><a href="http://wiki.apache.org/lucene-hadoop/Hbase/HbaseArchitecture">HBase Architecture</a>
|
||||||
|
|
|
@ -16,8 +16,10 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1><a href="http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell">HQL</a></h1>
|
<a id="logo" href="http://wiki.apache.org/lucene-hadoop/Hbase"><img src="/static/hbase_logo_med.gif" alt="Hbase Logo" title="Hbase Logo" /></a>
|
||||||
<p><a href="/master.jsp">Home</a></p>
|
<h1 id="page_title"><a href="http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell">HQL</a></h1>
|
||||||
|
<p id="links_menu"><a href="/master.jsp">Home</a></p>
|
||||||
|
<hr id="head_rule" />
|
||||||
<% String query = request.getParameter("q");
|
<% String query = request.getParameter("q");
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
query = "";
|
query = "";
|
||||||
|
|
|
@ -32,9 +32,11 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1><a href="http://wiki.apache.org/lucene-hadoop/Hbase">Hbase</a> Master: <%=master.getMasterAddress()%></h1>
|
|
||||||
<p><a href="/hql.jsp">HQL</a>,
|
<a id="logo" href="http://wiki.apache.org/lucene-hadoop/Hbase"><img src="/static/hbase_logo_med.gif" alt="Hbase Logo" title="Hbase Logo" /></a>
|
||||||
<a href="/logs/">Local logs</a>, <a href="/stacks">Thread Dump</a></p>
|
<h1 id="page_title">Master: <%=master.getMasterAddress()%></h1>
|
||||||
|
<p id="links_menu"><a href="/hql.jsp">HQL</a>, <a href="/logs/">Local logs</a>, <a href="/stacks">Thread Dump</a></p>
|
||||||
|
<hr id="head_rule" />
|
||||||
|
|
||||||
<h2>Master Attributes</h2>
|
<h2>Master Attributes</h2>
|
||||||
<table>
|
<table>
|
||||||
|
@ -81,4 +83,4 @@
|
||||||
</table>
|
</table>
|
||||||
<% } %>
|
<% } %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -19,8 +19,10 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1><a href="http://wiki.apache.org/lucene-hadoop/Hbase">Hbase</a> Region Server: <%= serverInfo.getServerAddress().toString() %></h1>
|
<a id="logo" href="http://wiki.apache.org/lucene-hadoop/Hbase"><img src="/static/hbase_logo_med.gif" alt="Hbase Logo" title="Hbase Logo" /></a>
|
||||||
<p><a href="/logs/">Local logs</a>, <a href="/stacks">Thread Dump</a></p>
|
<h1 id="page_title">Region Server: <%= serverInfo.getServerAddress().toString() %></h1>
|
||||||
|
<p id="links_menu"><a href="/logs/">Local logs</a>, <a href="/stacks">Thread Dump</a></p>
|
||||||
|
<hr id="head_rule" />
|
||||||
|
|
||||||
<h2>Region Server Attributes</h2>
|
<h2>Region Server Attributes</h2>
|
||||||
<table>
|
<table>
|
||||||
|
@ -54,4 +56,4 @@ further explication.<p>
|
||||||
<p>Not serving regions</p>
|
<p>Not serving regions</p>
|
||||||
<% } %>
|
<% } %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -3,3 +3,6 @@ table { border: thin solid DodgerBlue }
|
||||||
tr { border: thin solid DodgerBlue }
|
tr { border: thin solid DodgerBlue }
|
||||||
td { border: thin solid DodgerBlue }
|
td { border: thin solid DodgerBlue }
|
||||||
th { border: thin solid DodgerBlue }
|
th { border: thin solid DodgerBlue }
|
||||||
|
#logo {float: left;}
|
||||||
|
#logo img {border: none;}
|
||||||
|
#page_title {padding-top: 27px;}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue