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

Mike Drob commented on HBASE-20282:
-----------------------------------

Old output:

{code}
2018-03-27 22:03:01,405 ERROR [main] util.AbstractHBaseTool: Error running 
command-line tool
java.lang.IllegalArgumentException: Either -write or -update or -read has to be 
specified
        at 
org.apache.hadoop.hbase.util.LoadTestTool.processOptions(LoadTestTool.java:385)
        at 
org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:151)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at 
org.apache.hadoop.hbase.util.AbstractHBaseTool.doStaticMain(AbstractHBaseTool.java:271)
        at org.apache.hadoop.hbase.util.LoadTestTool.main(LoadTestTool.java:790)
{code}

New output:

{code}
mdrob@mdrob-MBP:~/IdeaProjects/hbase$ bin/hbase ltt
2018-03-27 21:52:53,428 ERROR [main] util.AbstractHBaseTool: Must specify 
either -init_only or at least one of -read, -write, -update
2018-03-27 21:52:53,429 ERROR [main] util.AbstractHBaseTool: Use -h or --help 
for usage instructions.
{code}

> Provide short name invocations for useful tools
> -----------------------------------------------
>
>                 Key: HBASE-20282
>                 URL: https://issues.apache.org/jira/browse/HBASE-20282
>             Project: HBase
>          Issue Type: Bug
>          Components: documentation, tooling
>            Reporter: Mike Drob
>            Priority: Major
>              Labels: beginner
>
> We have some tooling that can be made more friendly.
> {{bin/hbase ltt}} with no arguments should print usage instead of a stack 
> trace.
> {{bin/hbase canary}} usage should refer to itself as {{canary}} not 
> {{o.a.h.h.tool.Canary}}
> {{bin/hbase org.apache.hadoop.hbase.util.RegionSplitter}} should be shortened 
> to {{bin/hbase regionsplitter}}. Usage should be updated to reflect the short 
> name.
> The fix here MUST also include updates to the book/documentation for the 
> tools.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to