From 5c869d23e977fa431a4658305d56ac496e417e67 Mon Sep 17 00:00:00 2001
From: Michael Stack
Date: Wed, 7 Nov 2007 03:48:13 +0000
Subject: [PATCH] HADOOP-2074 Simple switch to enable DEBUG level-logging in
hbase
git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@592603 13f79535-47bb-0310-9956-ffa450edef68
---
CHANGES.txt | 1 +
.../hadoop/hbase/generated/master/hql_jsp.java | 4 ++--
.../hadoop/hbase/generated/master/master_jsp.java | 13 ++++++++-----
.../generated/regionserver/regionserver_jsp.java | 4 ++--
.../org/apache/hadoop/hbase/util/InfoServer.java | 3 ++-
src/webapps/master/master.jsp | 11 +++++++----
src/webapps/regionserver/regionserver.jsp | 6 +++---
7 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index ca723a779b6..ae9153d5eb9 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -32,6 +32,7 @@ Trunk (unreleased changes)
IMPROVEMENTS
HADOOP-2401 Add convenience put method that takes writable
(Johan Oskarsson via Stack)
+ HADOOP-2074 Simple switch to enable DEBUG level-logging in hbase
HADOOP-2088 Make hbase runnable in $HADOOP_HOME/build(/contrib/hbase)
HADOOP-2126 Use Bob Jenkins' hash for bloom filters
HADOOP-2157 Make Scanners implement Iterable
diff --git a/src/java/org/apache/hadoop/hbase/generated/master/hql_jsp.java b/src/java/org/apache/hadoop/hbase/generated/master/hql_jsp.java
index 70192da0c77..b1b909bf7e2 100644
--- a/src/java/org/apache/hadoop/hbase/generated/master/hql_jsp.java
+++ b/src/java/org/apache/hadoop/hbase/generated/master/hql_jsp.java
@@ -52,9 +52,9 @@ public final class hql_jsp extends org.apache.jasper.runtime.HttpJspBase
query = "";
}
- out.write("\n\n
Enter 'help;' -- thats 'help' plus a semi-colon -- for a list of HQL commands.\n Data Definition, SHELL, INSERTS, DELETES, and UPDATE commands are disabled in this interface\n
\n \n ");
+ out.write("\" />\n \n
\n \n
Enter 'help;' -- thats 'help' plus a semi-colon -- for the list of HQL commands.\n Data Definition, SHELL, INSERTS, DELETES, and UPDATE commands are disabled in this interface\n
\n \n ");
if (query.length() > 0) {
diff --git a/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java b/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
index b8962196dfd..b4b4378d0c9 100644
--- a/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
+++ b/src/java/org/apache/hadoop/hbase/generated/master/master_jsp.java
@@ -63,16 +63,17 @@ public final class master_jsp extends org.apache.jasper.runtime.HttpJspBase
Map onlineRegions = master.getOnlineMetaRegions();
Map serverToServerInfos =
master.getServersToServerInfo();
+ int interval = conf.getInt("hbase.regionserver.msginterval", 6000)/1000;
out.write("\n \n\n\nHbase Master: ");
out.print( master.getMasterAddress());
out.write("\n\n\n\n\n\n\n