2 @rem
* Licensed to the Apache Software Foundation
(ASF
) under one
3 @rem
* or more contributor license agreements. See the NOTICE file
4 @rem
* distributed with this work
for additional information
5 @rem
* regarding copyright ownership. The ASF licenses this file
6 @rem
* to you under the Apache License
, Version
2.0 (the
7 @rem
* "License"); you may
not use this file except in compliance
8 @rem
* with the License. You may obtain a
copy of the License at
10 @rem
* http
://www.apache.org
/licenses
/LICENSE
-2.0
12 @rem
* Unless required by applicable law or agreed to in writing
, software
13 @rem
* distributed under the License is distributed on an
"AS IS" BASIS
,
14 @rem
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
, either express or implied.
15 @rem
* See the License
for the specific language governing permissions and
16 @rem
* limitations under the License.
19 @rem
Set environment variables here.
21 @rem The java implementation to
use. Java
1.8+ required.
22 @rem
set JAVA_HOME
=c
:\apps\java
24 @rem Extra Java CLASSPATH elements. Optional.
25 @rem
set HBASE_CLASSPATH
=
27 @rem The maximum amount of heap to
use. Default is left to JVM default.
28 @rem
set HBASE_HEAPSIZE
=1000
30 @rem Uncomment below
if you intend to
use off heap
cache.
For example
, to allocate
8G of
31 @rem offheap
, set the value to
"8G".
32 @rem
set HBASE_OFFHEAPSIZE
=1000
34 @rem
For example
, to allocate
8G of offheap
, to
8G
:
35 @rem
set HBASE_OFFHEAPSIZE
=8G
37 @rem Extra Java runtime options.
38 @rem Below are what we
set by default. May only work with SUN JVM.
39 @rem
For more on why as well as other possible settings
,
40 @rem see http
://hbase.apache.org
/book.html#performance
41 @rem JDK6 on Windows has a known bug
for IPv6
, use preferIPv4Stack unless JDK7.
42 @rem @rem See TestIPv6NIOServerSocketChannel.
43 set HBASE_OPTS
=%HBASE_OPTS% "-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
45 @rem Uncomment below to enable java garbage collection logging
for the server
-side processes
46 @rem this enables basic gc logging
for the server processes to the .out file
47 @rem
set SERVER_GC_OPTS
="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
49 @rem this enables gc logging using automatic GC log rolling. Only applies to jdk
1.6.0_34
+ and
1.7.0_2
+. Either
use this
set of options or the one above
50 @rem
set SERVER_GC_OPTS
="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" "-XX:+UseGCLogFileRotation" "-XX:NumberOfGCLogFiles=1" "-XX:GCLogFileSize=512M" %HBASE_GC_OPTS%
52 @rem Uncomment below to enable java garbage collection logging
for the client processes in the .out file.
53 @rem
set CLIENT_GC_OPTS
="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
55 @rem Uncomment below
(along with above GC logging
) to put GC information in its own logfile
(will
set HBASE_GC_OPTS
)
56 @rem
set HBASE_USE_GC_LOGFILE
=true
58 @rem Uncomment and adjust to enable JMX exporting
59 @rem See jmxremote.password and jmxremote.access in $JRE_HOME
/lib
/management to configure remote password access.
60 @rem More details at
: http
://java.sun.com
/javase
/6/docs
/technotes
/guides
/management
/agent.html
62 @rem
set HBASE_JMX_BASE
="-Dcom.sun.management.jmxremote.ssl=false" "-Dcom.sun.management.jmxremote.authenticate=false"
63 @rem
set HBASE_MASTER_OPTS
=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10101"
64 @rem
set HBASE_REGIONSERVER_OPTS
=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10102"
65 @rem
set HBASE_THRIFT_OPTS
=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10103"
66 @rem
set HBASE_ZOOKEEPER_OPTS
=%HBASE_JMX_BASE% -Dcom.sun.management.jmxremote.port
=10104"
68 @rem File naming hosts on which HRegionServers will run. $HBASE_HOME/conf/regionservers by default.
69 @rem set HBASE_REGIONSERVERS=%HBASE_HOME%\conf\regionservers
71 @rem Where log files are stored. $HBASE_HOME/logs by default.
72 @rem set HBASE_LOG_DIR=%HBASE_HOME%\logs
74 @rem A string representing this instance of hbase. $USER by default.
75 @rem set HBASE_IDENT_STRING=%USERNAME%
77 @rem Seconds to sleep between slave commands. Unset by default. This
78 @rem can be useful in large clusters, where, e.g., slave rsyncs can
79 @rem otherwise arrive faster than the master can service them.
80 @rem set HBASE_SLAVE_SLEEP=0.1
82 @rem Tell HBase whether it should manage it's own instance of ZooKeeper or not.
83 @rem set HBASE_MANAGES_ZK=true
85 @rem Tell HBase the logger level and appenders
86 @rem set HBASE_ROOT_LOGGER=INFO,DRFA
88 @rem Uncomment to enable trace, you can change the options to use other exporters such as jaeger or
89 @rem zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to
90 @rem configure exporters and other components through system properties.
91 @rem set HBASE_TRACE_OPTS="-Dotel.resource.attributes
=service.name
=HBase
-Dotel.traces.exporter
=logging otel.metrics.exporter
=none
"