HBASE-3349. Pass HBase configuration to HttpServer

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1048928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2010-12-14 04:00:27 +00:00
parent ebae4daf4e
commit 1b7b7a935a
2 changed files with 3 additions and 1 deletions

View File

@ -1251,6 +1251,7 @@ Release 0.90.0 - Unreleased
(Nicolas Spiegelberg via Stack)
HBASE-3303 Lower hbase.regionserver.handler.count from 25 back to 10
HBASE-2467 Concurrent flushers in HLog sync using HDFS-895
HBASE-3349 Pass HBase configuration to HttpServer
NEW FEATURES

View File

@ -20,6 +20,7 @@
package org.apache.hadoop.hbase.util;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.http.HttpServer;
import org.mortbay.jetty.handler.ContextHandlerCollection;
import org.mortbay.jetty.servlet.Context;
@ -50,7 +51,7 @@ public class InfoServer extends HttpServer {
*/
public InfoServer(String name, String bindAddress, int port, boolean findPort)
throws IOException {
super(name, bindAddress, port, findPort);
super(name, bindAddress, port, findPort, HBaseConfiguration.create());
webServer.addHandler(new ContextHandlerCollection());
}