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/08/31 20:29:29 UTC
svn commit: r1379540 - /hbase/branches/0.89-fb/bin/hbase
Author: mbautin
Date: Fri Aug 31 18:29:28 2012
New Revision: 1379540
URL: http://svn.apache.org/viewvc?rev=1379540&view=rev
Log:
support for bin/hadoop classpath bin/hbase classpath
Author: pkhemani
Summary: as in title
Test Plan: ran changed bin/hadoop and bin/hbase scripts in the source directories and that worked fine.
Reviewers: mbautin, sdong
Reviewed By: mbautin
CC: hbase-eng@, hdfs-dev@, pritam
Differential Revision: https://phabricator.fb.com/D559998
Task ID: 1409831
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=1379540&r1=1379539&r2=1379540&view=diff
==============================================================================
--- hbase/branches/0.89-fb/bin/hbase (original)
+++ hbase/branches/0.89-fb/bin/hbase Fri Aug 31 18:29:28 2012
@@ -281,6 +281,9 @@ elif [ "$COMMAND" = "zookeeper" ] ; then
fi
elif [ "$COMMAND" = "zkcli" ] ; then
CLASS='org.apache.zookeeper.ZooKeeperMain'
+elif [ "$COMMAND" = "classpath" ] ; then
+ # print the computed classpath and exit
+ CLASS=
else
CLASS=$COMMAND
fi
@@ -298,5 +301,10 @@ if [ "x$JAVA_LIBRARY_PATH" != "x" ]; the
HBASE_OPTS="$HBASE_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
fi
+if [ "$COMMAND" = "classpath" ] ; then
+ echo $CLASSPATH
+ exit 0
+fi
+
# run it
exec "$JAVA" $JAVA_HEAP_MAX $HBASE_OPTS -classpath "$CLASSPATH" $CLASS "$@"