HBASE-3941 'hbase version' command line should print version info

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1133211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-06-08 00:06:02 +00:00
parent 9b22cb0f0e
commit 9a047f1343
2 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,8 @@ Release 0.91.0 - Unreleased
(Brock Noland) (Brock Noland)
HBASE-3873 Mavenize Hadoop Snappy JAR/SOs project dependencies HBASE-3873 Mavenize Hadoop Snappy JAR/SOs project dependencies
(Alejandro Abdelnur) (Alejandro Abdelnur)
HBASE-3941 "hbase version" command line should print version info
(Jolly Chen)
TASKS TASKS
HBASE-3559 Move report of split to master OFF the heartbeat channel HBASE-3559 Move report of split to master OFF the heartbeat channel

View File

@ -77,6 +77,8 @@ if [ $# = 0 ]; then
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 dump hbase CLASSPATH" echo " classpath dump hbase CLASSPATH"
echo " version print the version"
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."
@ -259,6 +261,8 @@ elif [ "$COMMAND" = "zkcli" ] ; then
elif [ "$COMMAND" = "classpath" ] ; then elif [ "$COMMAND" = "classpath" ] ; then
echo $CLASSPATH echo $CLASSPATH
exit 0 exit 0
elif [ "$COMMAND" = "version" ] ; then
CLASS='org.apache.hadoop.hbase.util.VersionInfo'
else else
CLASS=$COMMAND CLASS=$COMMAND
fi fi