Repository: hbase Updated Branches: refs/heads/0.98 6f4d5d8ec -> f10effb79 refs/heads/branch-1 c634fc8f8 -> bd2463470 refs/heads/master ab757169a -> 6e7dd6f82
HBASE-11668 Re-add HBASE_LIBRARY_PATH to bin/hbase (Esteban Gutierrez) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6e7dd6f8 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6e7dd6f8 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6e7dd6f8 Branch: refs/heads/master Commit: 6e7dd6f8279d846d638b50d4b58fdeb976cbfcbb Parents: ab75716 Author: Andrew Purtell <[email protected]> Authored: Mon Aug 4 21:26:17 2014 -0700 Committer: Andrew Purtell <[email protected]> Committed: Mon Aug 4 21:27:47 2014 -0700 ---------------------------------------------------------------------- bin/hbase | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/6e7dd6f8/bin/hbase ---------------------------------------------------------------------- diff --git a/bin/hbase b/bin/hbase index 6855cb6..ec0aabc 100755 --- a/bin/hbase +++ b/bin/hbase @@ -200,6 +200,11 @@ function append_path() { JAVA_PLATFORM="" +# if HBASE_LIBRARY_PATH is defined lets use it as first or second option +if [ "$HBASE_LIBRARY_PATH" != "" ]; then + JAVA_LIBRARY_PATH=$(append_path "$JAVA_LIBRARY_PATH" "$HBASE_LIBRARY_PATH") +fi + #If avail, add Hadoop to the CLASSPATH and to the JAVA_LIBRARY_PATH HADOOP_IN_PATH=$(PATH="${HADOOP_HOME:-${HADOOP_PREFIX}}/bin:$PATH" which hadoop 2>/dev/null) if [ -f ${HADOOP_IN_PATH} ]; then
