You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2012/06/23 14:51:05 UTC
svn commit: r1353124 - /hbase/branches/0.89-fb/bin/hbase
Author: mbautin
Date: Sat Jun 23 12:51:04 2012
New Revision: 1353124
URL: http://svn.apache.org/viewvc?rev=1353124&view=rev
Log:
add HADOOP_OVERRIDE_CLASSPATH and HBASE_OVERRIDE_CLASSPATH
Author: pkhemani
Summary: for example yesterday we ran into an issue wehre the MR task wanted to use codec-1.4.jar instead of codec-1.3.jar and we had to turn off provsioning etc. to be able to get codec-1.3.jar out of the classpath.
Test Plan: ran these scripts without arg. That verifies the syntax of the change.
Reviewers: kannan, rthiessen, kranganathan, mbautin
Reviewed By: mbautin
CC: hbase-eng@, hdfs-dev@, mbautin
Differential Revision: https://phabricator.fb.com/D502141
Modified:
hbase/branches/0.89-fb/bin/hbase
Modified: hbase/branches/0.89-fb/bin/hbase
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/bin/hbase?rev=1353124&r1=1353123&r2=1353124&view=diff
==============================================================================
--- hbase/branches/0.89-fb/bin/hbase (original)
+++ hbase/branches/0.89-fb/bin/hbase Sat Jun 23 12:51:04 2012
@@ -112,8 +112,13 @@ fi
# so that filenames w/ spaces are handled correctly in loops below
IFS=
-# CLASSPATH initially contains $HBASE_CONF_DIR
-CLASSPATH="${HBASE_CONF_DIR}"
+# user specified classpath to override everything else goes first
+if [ "$HBASE_OVERRIDE_CLASSPATH" != "" ]; then
+ CLASSPATH="${HBASE_OVERRIDE_CLASSPATH}":"${HBASE_CONF_DIR}"
+else
+ CLASSPATH="${HBASE_CONF_DIR}"
+fi
+
CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
add_maven_deps_to_classpath() {