HBASE-9474 Cleanup of hbase script usage

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1522064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-09-11 22:06:33 +00:00
parent 8e2a1d3e37
commit 6fa574e115
2 changed files with 43 additions and 50 deletions

View File

@ -68,33 +68,29 @@ fi
# if no args specified, show usage # if no args specified, show usage
if [ $# = 0 ]; then if [ $# = 0 ]; then
echo "Usage: hbase <command>" echo "Usage: hbase [<options>] <command> [<args>]"
echo "where <command> an option from one of these categories:" echo "Options:"
echo " --config DIR Configuration direction to use. Default: ./conf"
echo " --hosts HOSTS Override the list in 'regionservers' file"
echo "" echo ""
echo "DBA TOOLS" echo "Commands:"
echo " shell run the HBase shell" echo "Some commands take arguments. Pass no args or -h for usage."
echo " hbck run the hbase 'fsck' tool" echo " shell Run the HBase shell"
echo " hlog write-ahead-log analyzer" echo " hbck Run the hbase 'fsck' tool"
echo " hfile store file analyzer" echo " hlog Write-ahead-log analyzer"
echo " zkcli run the ZooKeeper shell" echo " hfile Store file analyzer"
echo " upgrade upgrade hbase" echo " zkcli Run the ZooKeeper shell"
echo "" echo " upgrade Upgrade hbase"
echo "PROCESS MANAGEMENT" echo " master Run an HBase HMaster node"
echo " master run an HBase HMaster node" echo " regionserver Run an HBase HRegionServer node"
echo " regionserver run an HBase HRegionServer node" echo " zookeeper Run a Zookeeper server"
echo " zookeeper run a Zookeeper server" echo " rest Run an HBase REST server"
echo " rest run an HBase REST server" echo " thrift Run the HBase Thrift server"
echo " thrift run the HBase Thrift server" echo " thrift2 Run the HBase Thrift2 server"
echo " thrift2 run the HBase Thrift2 server" echo " clean Run the HBase clean up script"
echo " clean run the HBase clean up script" echo " classpath Dump hbase CLASSPATH"
echo "" echo " version Print the version"
echo "PACKAGE MANAGEMENT" echo " CLASSNAME Run the class named CLASSNAME"
echo " classpath dump hbase CLASSPATH"
echo " version print the version"
echo ""
echo " or"
echo " CLASSNAME run the class named CLASSNAME"
echo "Most commands print help when invoked w/o parameters."
exit 1 exit 1
fi fi

View File

@ -392,29 +392,26 @@ goto :eof
goto :eof goto :eof
:print_usage :print_usage
echo Usage: hbase ^<command^> echo Usage: hbase [^<options^>] ^<command^> [^<args^>]
echo where ^<command^> an option from one of these categories:: echo where ^<command^> an option from one of these categories::
echo DBA TOOLS echo Options:
echo shell run the HBase shell echo --config DIR Configuration direction to use. Default: ./conf
echo hbck run the hbase 'fsck' tool echo.
echo hlog write-ahead-log analyzer echo Commands:
echo hfile store file analyzer echo Some commands take arguments. Pass no args or -h for usage."
echo zkcli run the ZooKeeper shell echo shell Run the HBase shell
echo. echo hbck Run the hbase 'fsck' tool
echo PROCESS MANAGEMENT echo hlog Write-ahead-log analyzer
echo master run an HBase HMaster node echo hfile Store file analyzer
echo regionserver run an HBase HRegionServer node echo zkcli Run the ZooKeeper shell
echo zookeeper run a Zookeeper server echo upgrade Upgrade hbase
echo rest run an HBase REST server echo master Run an HBase HMaster node
echo thrift run the HBase Thrift server echo regionserver Run an HBase HRegionServer node
echo thrift2 run the HBase Thrift2 server echo zookeeper Run a Zookeeper server
echo avro run an HBase Avro server echo rest Run an HBase REST server
echo. echo thrift Run the HBase Thrift server
echo PACKAGE MANAGEMENT echo thrift2 Run the HBase Thrift2 server
echo classpath dump hbase CLASSPATH echo classpath Dump hbase CLASSPATH
echo version print the version echo version Print the version
echo. echo CLASSNAME Run the class named CLASSNAME
echo or
echo CLASSNAME run the class named CLASSNAME
echo Most commands print help when invoked w/o parameters.
goto :eof goto :eof