<% if scope.lookupvar('::osfamily') == 'Debian' -%>
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
<% end -%>
<% -%>
<% if scope.lookupvar('::osfamily') == 'RedHat' -%>
export JAVA_HOME=/usr/lib/jvm/jre
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
export HBASE_LOG_DIR=/var/log/hbase
export HBASE_PID_DIR=/var/run/hbase
<% end -%>
<% -%>
<% if scope.lookupvar('hbase::realm') and not scope.lookupvar('hbase::realm').
empty? -%>
export HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=<%= scope.lookupvar('hbase::confdir') -%>/zk-jaas.conf"
<% end -%>
<% if scope.lookupvar('hbase::external_zookeeper') == true -%>
export HBASE_MANAGES_ZK=false
<% else -%>
export HBASE_MANAGES_ZK=true
<% end -%>

<% if scope.lookupvar('::osfamily') == 'Debian' -%>
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
<% end -%>
<% -%>
<% if scope.lookupvar('::osfamily') == 'RedHat' -%>
export JAVA_HOME=/usr/lib/jvm/jre
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
export HBASE_LOG_DIR=/var/log/hbase
export HBASE_PID_DIR=/var/run/hbase
<% end -%>
<% -%>
<% if scope.lookupvar('hbase::external_zookeeper') == true -%>
<% if scope.lookupvar('hbase::realm') and not scope.lookupvar('hbase::realm').
empty? -%>
export HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=<%= scope.lookupvar('hbase::confdir') -%>/zk-jaas.conf"
<% end -%>
export HBASE_MANAGES_ZK=false
<% else -%>
export HBASE_MANAGES_ZK=true
<% end -%>

Enable security of client side of zookeeper only when there is used external zookeeper.
Enable security of client side of zookeeper only when there is used external zookeeper.
