use root zoo.cfg for testing contribs, and use the correct client port for the ZK minicluster
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@789139 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
90c057b60f
commit
32e85a601b
|
@ -74,7 +74,7 @@
|
||||||
<pathelement location="${build.test}" />
|
<pathelement location="${build.test}" />
|
||||||
<pathelement location="${hadoop.root}/build/test"/>
|
<pathelement location="${hadoop.root}/build/test"/>
|
||||||
<pathelement location="${hadoop.root}/build"/>
|
<pathelement location="${hadoop.root}/build"/>
|
||||||
<pathelement location="${hadoop.root}/src/contrib/test"/>
|
<pathelement location="${hadoop.root}/src/test"/>
|
||||||
<pathelement location="${conf.dir}"/>
|
<pathelement location="${conf.dir}"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
|
|
@ -1,130 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
|
|
||||||
<!--
|
|
||||||
/**
|
|
||||||
* Copyright 2007 The Apache Software Foundation
|
|
||||||
*
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
<configuration>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.msginterval</name>
|
|
||||||
<value>1000</value>
|
|
||||||
<description>Interval between messages from the RegionServer to HMaster
|
|
||||||
in milliseconds. Default is 15. Set this value low if you want unit
|
|
||||||
tests to be responsive.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.client.pause</name>
|
|
||||||
<value>5000</value>
|
|
||||||
<description>General client pause value. Used mostly as value to wait
|
|
||||||
before running a retry of a failed get, region lookup, etc.</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.master.meta.thread.rescanfrequency</name>
|
|
||||||
<value>10000</value>
|
|
||||||
<description>How long the HMaster sleeps (in milliseconds) between scans of
|
|
||||||
the root and meta tables.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.server.thread.wakefrequency</name>
|
|
||||||
<value>1000</value>
|
|
||||||
<description>Time to sleep in between searches for work (in milliseconds).
|
|
||||||
Used as sleep interval by service threads such as META scanner and log roller.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.handler.count</name>
|
|
||||||
<value>5</value>
|
|
||||||
<description>Count of RPC Server instances spun up on RegionServers
|
|
||||||
Same property is used by the HMaster for count of master handlers.
|
|
||||||
Default is 10.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.master.lease.period</name>
|
|
||||||
<value>6000</value>
|
|
||||||
<description>Length of time the master will wait before timing out a region
|
|
||||||
server lease. Since region servers report in every second (see above), this
|
|
||||||
value has been reduced so that the master will notice a dead region server
|
|
||||||
sooner. The default is 30 seconds.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.master.info.port</name>
|
|
||||||
<value>-1</value>
|
|
||||||
<description>The port for the hbase master web UI
|
|
||||||
Set to -1 if you do not want the info server to run.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.info.port</name>
|
|
||||||
<value>-1</value>
|
|
||||||
<description>The port for the hbase regionserver web UI
|
|
||||||
Set to -1 if you do not want the info server to run.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.info.port.auto</name>
|
|
||||||
<value>true</value>
|
|
||||||
<description>Info server auto port bind. Enables automatic port
|
|
||||||
search if hbase.regionserver.info.port is already in use.
|
|
||||||
Enabled for testing to run multiple tests on one machine.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.master.lease.thread.wakefrequency</name>
|
|
||||||
<value>3000</value>
|
|
||||||
<description>The interval between checks for expired region server leases.
|
|
||||||
This value has been reduced due to the other reduced values above so that
|
|
||||||
the master will notice a dead region server sooner. The default is 15 seconds.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.optionalcacheflushinterval</name>
|
|
||||||
<value>10000</value>
|
|
||||||
<description>
|
|
||||||
Amount of time to wait since the last time a region was flushed before
|
|
||||||
invoking an optional cache flush. Default 60,000.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.regionserver.safemode</name>
|
|
||||||
<value>false</value>
|
|
||||||
<description>
|
|
||||||
Turn on/off safe mode in region server. Always on for production, always off
|
|
||||||
for tests.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hbase.hregion.max.filesize</name>
|
|
||||||
<value>67108864</value>
|
|
||||||
<description>
|
|
||||||
Maximum desired file size for an HRegion. If filesize exceeds
|
|
||||||
value + (value / 2), the HRegion is split in two. Default: 256M.
|
|
||||||
|
|
||||||
Keep the maximum filesize small so we split more often in tests.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
<property>
|
|
||||||
<name>hadoop.log.dir</name>
|
|
||||||
<value>${user.dir}/../logs</value>
|
|
||||||
</property>
|
|
||||||
</configuration>
|
|
|
@ -1,47 +0,0 @@
|
||||||
# Define some default values that can be overridden by system properties
|
|
||||||
hbase.root.logger=INFO,console
|
|
||||||
hbase.log.dir=.
|
|
||||||
hbase.log.file=hbase.log
|
|
||||||
|
|
||||||
# Define the root logger to the system property "hbase.root.logger".
|
|
||||||
log4j.rootLogger=${hbase.root.logger}
|
|
||||||
|
|
||||||
# Logging Threshold
|
|
||||||
log4j.threshhold=ALL
|
|
||||||
|
|
||||||
#
|
|
||||||
# Daily Rolling File Appender
|
|
||||||
#
|
|
||||||
log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
|
|
||||||
log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
|
|
||||||
|
|
||||||
# Rollver at midnight
|
|
||||||
log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
|
|
||||||
|
|
||||||
# 30-day backup
|
|
||||||
#log4j.appender.DRFA.MaxBackupIndex=30
|
|
||||||
log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
|
|
||||||
|
|
||||||
# Pattern format: Date LogLevel LoggerName LogMessage
|
|
||||||
#log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
|
|
||||||
|
|
||||||
# Debugging Pattern format
|
|
||||||
log4j.appender.DRFA.layout.ConversionPattern=%d %-5p [%t] %C{2}(%L): %m%n
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# console
|
|
||||||
# Add "console" to rootlogger above if you want to use this
|
|
||||||
#
|
|
||||||
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
||||||
log4j.appender.console.target=System.err
|
|
||||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.console.layout.ConversionPattern=%d %-5p [%t] %C{2}(%L): %m%n
|
|
||||||
|
|
||||||
# Custom Logging levels
|
|
||||||
|
|
||||||
#log4j.logger.org.apache.hadoop.fs.FSNamesystem=DEBUG
|
|
||||||
|
|
||||||
log4j.logger.org.apache.hadoop=WARN
|
|
||||||
log4j.logger.org.apache.zookeeper=ERROR
|
|
||||||
log4j.logger.org.apache.hadoop.hbase=DEBUG
|
|
|
@ -1,14 +0,0 @@
|
||||||
# The number of milliseconds of each tick
|
|
||||||
tickTime=2000
|
|
||||||
# The number of ticks that the initial
|
|
||||||
# synchronization phase can take
|
|
||||||
initLimit=10
|
|
||||||
# The number of ticks that can pass between
|
|
||||||
# sending a request and getting an acknowledgement
|
|
||||||
syncLimit=5
|
|
||||||
# the directory where the snapshot is stored.
|
|
||||||
dataDir=${hbase.tmp.dir}/zookeeper
|
|
||||||
# the port at which the clients will connect
|
|
||||||
clientPort=21810
|
|
||||||
|
|
||||||
server.0=localhost:2888:3888
|
|
|
@ -9,6 +9,6 @@ syncLimit=5
|
||||||
# the directory where the snapshot is stored.
|
# the directory where the snapshot is stored.
|
||||||
dataDir=${hbase.tmp.dir}/zookeeper
|
dataDir=${hbase.tmp.dir}/zookeeper
|
||||||
# the port at which the clients will connect
|
# the port at which the clients will connect
|
||||||
clientPort=2181
|
clientPort=21810
|
||||||
|
|
||||||
server.0=localhost:2888:3888
|
server.0=localhost:2888:3888
|
||||||
|
|
Loading…
Reference in New Issue