hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbau...@apache.org
Subject svn commit: r1379540 - /hbase/branches/0.89-fb/bin/hbase
Date Fri, 31 Aug 2012 18:29:29 GMT
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 "$@"



Mime
View raw message