From f8dd99d7380e5eafae62a9f0c526ba24f98eb2e5 Mon Sep 17 00:00:00 2001 From: Esteban Gutierrez Date: Tue, 1 Sep 2015 18:36:39 -0700 Subject: [PATCH] HBASE-14354 Minor improvements for usage of the mlock agent --- bin/hbase-config.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/bin/hbase-config.sh b/bin/hbase-config.sh index 5c518b1dc84..c113adb522b 100644 --- a/bin/hbase-config.sh +++ b/bin/hbase-config.sh @@ -98,22 +98,20 @@ 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" + MLOCK_AGENT="$HBASE_HOME/lib/native/libmlockall_agent.so" if [ ! -f "$MLOCK_AGENT" ]; then cat 1>&2 <