HBASE-3000 Add "hbase classpath" command to dump classpath

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@999060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-20 19:13:43 +00:00
parent a3856ca945
commit 98b9448162
2 changed files with 5 additions and 0 deletions

View File

@ -967,6 +967,7 @@ Release 0.21.0 - Unreleased
HBASE-2862 Name DFSClient for Improved Debugging HBASE-2862 Name DFSClient for Improved Debugging
(Nicolas Spiegelberg via Stack) (Nicolas Spiegelberg via Stack)
HBASE-2838 Replication metrics HBASE-2838 Replication metrics
HBASE-3000 Add "hbase classpath" command to dump classpath
OPTIMIZATIONS OPTIMIZATIONS
HBASE-410 [testing] Speed up the test suite HBASE-410 [testing] Speed up the test suite

View File

@ -76,6 +76,7 @@ if [ $# = 0 ]; then
echo " avro run an HBase Avro server" echo " avro run an HBase Avro server"
echo " migrate upgrade an hbase.rootdir" echo " migrate upgrade an hbase.rootdir"
echo " hbck run the hbase 'fsck' tool" echo " hbck run the hbase 'fsck' tool"
echo " classpath dumps hbase CLASSPATH"
echo " or" echo " or"
echo " CLASSNAME run the class named CLASSNAME" echo " CLASSNAME run the class named CLASSNAME"
echo "Most commands print help when invoked w/o parameters." echo "Most commands print help when invoked w/o parameters."
@ -262,6 +263,9 @@ elif [ "$COMMAND" = "zookeeper" ] ; then
fi fi
elif [ "$COMMAND" = "zkcli" ] ; then elif [ "$COMMAND" = "zkcli" ] ; then
CLASS='org.apache.zookeeper.ZooKeeperMain' CLASS='org.apache.zookeeper.ZooKeeperMain'
elif [ "$COMMAND" = "classpath" ] ; then
echo $CLASSPATH
exit 0
else else
CLASS=$COMMAND CLASS=$COMMAND
fi fi