hbase-env.cmd 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @rem/**
  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
  9. @rem *
  10. @rem * http://www.apache.org/licenses/LICENSE-2.0
  11. @rem *
  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.
  17. @rem */
  18. @rem Set environment variables here.
  19. @rem The java implementation to use. Java 1.7+ required.
  20. @rem set JAVA_HOME=c:\apps\java
  21. @rem Extra Java CLASSPATH elements. Optional.
  22. @rem set HBASE_CLASSPATH=
  23. @rem The maximum amount of heap to use. Default is left to JVM default.
  24. @rem set HBASE_HEAPSIZE=1000
  25. @rem Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
  26. @rem offheap, set the value to "8G".
  27. @rem set HBASE_OFFHEAPSIZE=1000
  28. @rem For example, to allocate 8G of offheap, to 8G:
  29. @rem etHBASE_OFFHEAPSIZE=8G
  30. @rem Extra Java runtime options.
  31. @rem Below are what we set by default. May only work with SUN JVM.
  32. @rem For more on why as well as other possible settings,
  33. @rem see http://wiki.apache.org/hadoop/PerformanceTuning
  34. @rem JDK6 on Windows has a known bug for IPv6, use preferIPv4Stack unless JDK7.
  35. @rem @rem See TestIPv6NIOServerSocketChannel.
  36. set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
  37. @rem Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
  38. set HBASE_MASTER_OPTS=%HBASE_MASTER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
  39. set HBASE_REGIONSERVER_OPTS=%HBASE_REGIONSERVER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
  40. @rem Uncomment below to enable java garbage collection logging for the server-side processes
  41. @rem this enables basic gc logging for the server processes to the .out file
  42. @rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
  43. @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
  44. @rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" "-XX:+UseGCLogFileRotation" "-XX:NumberOfGCLogFiles=1" "-XX:GCLogFileSize=512M" %HBASE_GC_OPTS%
  45. @rem Uncomment below to enable java garbage collection logging for the client processes in the .out file.
  46. @rem set CLIENT_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%
  47. @rem Uncomment below (along with above GC logging) to put GC information in its own logfile (will set HBASE_GC_OPTS)
  48. @rem set HBASE_USE_GC_LOGFILE=true
  49. @rem Uncomment and adjust to enable JMX exporting
  50. @rem See jmxremote.password and jmxremote.access in $JRE_HOME/lib/management to configure remote password access.
  51. @rem More details at: http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
  52. @rem
  53. @rem set HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false" "-Dcom.sun.management.jmxremote.authenticate=false"
  54. @rem set HBASE_MASTER_OPTS=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10101"
  55. @rem set HBASE_REGIONSERVER_OPTS=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10102"
  56. @rem set HBASE_THRIFT_OPTS=%HBASE_JMX_BASE% "-Dcom.sun.management.jmxremote.port=10103"
  57. @rem set HBASE_ZOOKEEPER_OPTS=%HBASE_JMX_BASE% -Dcom.sun.management.jmxremote.port=10104"
  58. @rem File naming hosts on which HRegionServers will run. $HBASE_HOME/conf/regionservers by default.
  59. @rem set HBASE_REGIONSERVERS=%HBASE_HOME%\conf\regionservers
  60. @rem Where log files are stored. $HBASE_HOME/logs by default.
  61. @rem set HBASE_LOG_DIR=%HBASE_HOME%\logs
  62. @rem A string representing this instance of hbase. $USER by default.
  63. @rem set HBASE_IDENT_STRING=%USERNAME%
  64. @rem Seconds to sleep between slave commands. Unset by default. This
  65. @rem can be useful in large clusters, where, e.g., slave rsyncs can
  66. @rem otherwise arrive faster than the master can service them.
  67. @rem set HBASE_SLAVE_SLEEP=0.1
  68. @rem Tell HBase whether it should manage it's own instance of Zookeeper or not.
  69. @rem set HBASE_MANAGES_ZK=true