From 92dce9cef5758a6efcf927d3bc89c33a70279610 Mon Sep 17 00:00:00 2001 From: Esteban Gutierrez Date: Tue, 1 Sep 2015 14:11:40 -0700 Subject: [PATCH] HBASE-14354 Minor improvements for usage of the mlock agent --- bin/hbase-config.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/bin/hbase-config.sh b/bin/hbase-config.sh index 2bca169..19e3b13 100644 --- a/bin/hbase-config.sh +++ b/bin/hbase-config.sh @@ -100,22 +100,19 @@ if [ -z "$HBASE_ENV_INIT" ] && [ -f "${HBASE_CONF_DIR}/hbase-env.sh" ]; then export HBASE_ENV_INIT="true" fi -# Set default value for regionserver uid if not present -if [ -z "$HBASE_REGIONSERVER_UID" ]; then - HBASE_REGIONSERVER_UID="hbase" -fi - -# Verify if hbase has the mlock agent -if [ "$HBASE_REGIONSERVER_MLOCK" = "true" ]; then - MLOCK_AGENT="$HBASE_HOME/native/libmlockall_agent.so" +# Verify if hbase has the mlock agentif [ "$HBASE_REGIONSERVER_MLOCK" = "true" ]; then + MLOCK_AGENT="$HBASE_HOME/lib/native/libmlockall_agent.so" if [ ! -f "$MLOCK_AGENT" ]; then cat 1>&2 <