hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9474) Cleanup of hbase script usage
Date Mon, 09 Sep 2013 19:22:51 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762178#comment-13762178
] 

stack commented on HBASE-9474:
------------------------------

Here is how it used to look before this patch:

{code}
durruti:trunk stack$ ./bin/hbase
Usage: hbase <command>
where <command> an option from one of these categories:

DBA TOOLS
  shell            run the HBase shell
  hbck             run the hbase 'fsck' tool
  hlog             write-ahead-log analyzer
  hfile            store file analyzer
  zkcli            run the ZooKeeper shell
  upgrade          upgrade hbase

PROCESS MANAGEMENT
  master           run an HBase HMaster node
  regionserver     run an HBase HRegionServer node
  zookeeper        run a Zookeeper server
  rest             run an HBase REST server
  thrift           run the HBase Thrift server
  thrift2          run the HBase Thrift2 server
  clean            run the HBase clean up script

PACKAGE MANAGEMENT
  classpath        dump hbase CLASSPATH
  version          print the version

 or
  CLASSNAME        run the class named CLASSNAME
Most commands print help when invoked w/o parameters.
{code}

It is missing options and it has awkward division of functions.

Here is what it looks like now after patch:

{code}
durruti:hbase stack$ ./bin/hbase
Usage: hbase [<options>] <command> [<args>]
Options:
  --config DIR    Configuration direction to use. Default: ./conf
  --hosts HOSTS   Override the list in ''regionservers' file

Commands:
Some commands take arguments. Pass no args or -h for usage.
  shell           Run the HBase shell
  hbck            Run the hbase 'fsck' tool
  hlog            Write-ahead-log analyzer
  hfile           Store file analyzer
  zkcli           Run the ZooKeeper shell
  upgrade         Upgrade hbase
  master          Run an HBase HMaster node
  regionserver    Run an HBase HRegionServer node
  zookeeper       Run a Zookeeper server
  rest            Run an HBase REST server
  thrift          Run the HBase Thrift server
  thrift2         Run the HBase Thrift2 server
  clean           Run the HBase clean up script
  classpath       Dump hbase CLASSPATH
  version         Print the version
  CLASSNAME       Run the class named CLASSNAME
{code}

Above looks more like svn, git, httpd, etc., usage.

Looking for a +1
                
> Cleanup of hbase script usage
> -----------------------------
>
>                 Key: HBASE-9474
>                 URL: https://issues.apache.org/jira/browse/HBASE-9474
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.96.0
>
>         Attachments: 9474.txt
>
>
> Add in missing options.  A little reformatting...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message