jk121960

hbase-env.sh

Dec 27th, 2013
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. #
  2. #/**
  3. # * Copyright 2007 The Apache Software Foundation
  4. # *
  5. # * Licensed to the Apache Software Foundation (ASF) under one
  6. # * or more contributor license agreements. See the NOTICE file
  7. # * distributed with this work for additional information
  8. # * regarding copyright ownership. The ASF licenses this file
  9. # * to you under the Apache License, Version 2.0 (the
  10. # * "License"); you may not use this file except in compliance
  11. # * with the License. You may obtain a copy of the License at
  12. # *
  13. # * http://www.apache.org/licenses/LICENSE-2.0
  14. # *
  15. # * Unless required by applicable law or agreed to in writing, software
  16. # * distributed under the License is distributed on an "AS IS" BASIS,
  17. # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. # * See the License for the specific language governing permissions and
  19. # * limitations under the License.
  20. # */
  21.  
  22. # Set environment variables here.
  23.  
  24. # This script sets variables multiple times over the course of starting an hbase process,
  25. # so try to keep things idempotent unless you want to take an even deeper look
  26. # into the startup scripts (bin/hbase, etc.)
  27.  
  28. # The java implementation to use. Java 1.6 required.
  29. # export JAVA_HOME=/usr/java/jdk1.6.0/
  30. export JAVA_HOME=/opt/oracle-jdk-bin-1.7.0.45
  31.  
  32. # Extra Java CLASSPATH elements. Optional.
  33. # export HBASE_CLASSPATH=
  34.  
  35. # The maximum amount of heap to use, in MB. Default is 1000.
  36. # export HBASE_HEAPSIZE=1000
  37.  
  38. # Extra Java runtime options.
  39. # Below are what we set by default. May only work with SUN JVM.
  40. # For more on why as well as other possible settings,
  41. # see http://wiki.apache.org/hadoop/PerformanceTuning
  42. export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
  43.  
  44. # Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
  45.  
  46. # This enables basic gc logging to the .out file.
  47. # export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
  48.  
  49. # This enables basic gc logging to its own file.
  50. # If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
  51. # export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH>"
  52.  
  53. # This enables basic GC logging to its own file with automatic log rolling. Only applies to jdk 1.6.0_34+ and 1.7.0_2+.
  54. # If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
  55. # export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=512M"
  56.  
  57. # Uncomment one of the below three options to enable java garbage collection logging for the client processes.
  58.  
  59. # This enables basic gc logging to the .out file.
  60. # export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
  61.  
  62. # This enables basic gc logging to its own file.
  63. # If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
  64. # export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH>"
  65.  
  66. # This enables basic GC logging to its own file with automatic log rolling. Only applies to jdk 1.6.0_34+ and 1.7.0_2+.
  67. # If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
  68. # export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=512M"
  69.  
  70. # Uncomment below if you intend to use the EXPERIMENTAL off heap cache.
  71. # export HBASE_OPTS="$HBASE_OPTS -XX:MaxDirectMemorySize="
  72. # Set hbase.offheapcache.percentage in hbase-site.xml to a nonzero value.
  73.  
  74.  
  75. # Uncomment and adjust to enable JMX exporting
  76. # See jmxremote.password and jmxremote.access in $JRE_HOME/lib/management to configure remote password access.
  77. # More details at: http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
  78. #
  79. # export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
  80. # export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10101"
  81. # export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10102"
  82. # export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10103"
  83. # export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10104"
  84. # export HBASE_REST_OPTS="$HBASE_REST_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10105"
  85.  
  86. # File naming hosts on which HRegionServers will run. $HBASE_HOME/conf/regionservers by default.
  87. # export HBASE_REGIONSERVERS=${HBASE_HOME}/conf/regionservers
  88.  
  89. # Uncomment and adjust to keep all the Region Server pages mapped to be memory resident
  90. #HBASE_REGIONSERVER_MLOCK=true
  91. #HBASE_REGIONSERVER_UID="hbase"
  92.  
  93. # File naming hosts on which backup HMaster will run. $HBASE_HOME/conf/backup-masters by default.
  94. # export HBASE_BACKUP_MASTERS=${HBASE_HOME}/conf/backup-masters
  95.  
  96. # Extra ssh options. Empty by default.
  97. # export HBASE_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HBASE_CONF_DIR"
  98.  
  99. # Where log files are stored. $HBASE_HOME/logs by default.
  100. # export HBASE_LOG_DIR=${HBASE_HOME}/logs
  101.  
  102. # Enable remote JDWP debugging of major HBase processes. Meant for Core Developers
  103. # export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070"
  104. # export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071"
  105. # export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072"
  106. # export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8073"
  107.  
  108. # A string representing this instance of hbase. $USER by default.
  109. # export HBASE_IDENT_STRING=$USER
  110.  
  111. # The scheduling priority for daemon processes. See 'man nice'.
  112. # export HBASE_NICENESS=10
  113.  
  114. # The directory where pid files are stored. /tmp by default.
  115. # export HBASE_PID_DIR=/var/hadoop/pids
  116.  
  117. # Seconds to sleep between slave commands. Unset by default. This
  118. # can be useful in large clusters, where, e.g., slave rsyncs can
  119. # otherwise arrive faster than the master can service them.
  120. # export HBASE_SLAVE_SLEEP=0.1
  121.  
  122. # Tell HBase whether it should manage it's own instance of Zookeeper or not.
  123. # export HBASE_MANAGES_ZK=true
  124.  
  125. # The default log rolling policy is RFA, where the log file is rolled as per the size defined for the
  126. # RFA appender. Please refer to the log4j.properties file to see more details on this appender.
  127. # In case one needs to do log rolling on a date change, one should set the environment property
  128. # HBASE_ROOT_LOGGER to "<DESIRED_LOG LEVEL>,DRFA".
  129. # For example:
  130. # HBASE_ROOT_LOGGER=INFO,DRFA
  131. # The reason for changing default to RFA is to avoid the boundary case of filling out disk space as
  132. # DRFA doesn't put any cap on the log size. Please refer to HBase-5655 for more context.
Advertisement
Add Comment
Please, Sign In to add comment