timothy65535 opened a new pull request #826:
URL: https://github.com/apache/incubator-kyuubi/pull/826


   <!--
   Thanks for sending a pull request!
   
   Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: 
https://kyuubi.readthedocs.io/en/latest/community/contributions.html
     2. If the PR is related to an issue in 
https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your 
PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., 
'[WIP][KYUUBI #XXXX] Your PR title ...'.
   -->
   
   ### _Why are the changes needed?_
   
   For more details, please go to #775 
   
   
   Hi @yaooqinn @pan3793, 
   
   Here's the patch base on JCommander in scala, please point out if the scala 
grammar is not used correctly.
   
   The following usage is generated from JCommander, I think it seems a bit 
long for users, we can discuss it here.
   By the way, we can use the format of bookkeeper-ctl‘s usage.
   
   Thanks.
   ```
   Usage: kyuubi-ctl <server|engine> <create|get|delete|list> [options]
   [ ENGINE ]
   get
     -s, --host       Hostname or IP address of a service.
     -u, --user       The user name this engine belong to.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -p, --port       Listening port of a service.
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -h, --help       
   delete
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -p, --port       Listening port of a service.
     -s, --host       Hostname or IP address of a service.
     -u, --user       The user name this engine belong to.
     -h, --help       
   list
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -p, --port       Listening port of a service.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -u, --user       The user name this engine belong to.
     -s, --host       Hostname or IP address of a service.
     -h, --help       
   
   [ SERVER ]
   create
     -s, --host       Hostname or IP address of a service.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -p, --port       Listening port of a service.
     -h, --help       
   get
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -s, --host       Hostname or IP address of a service.
     -p, --port       Listening port of a service.
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -h, --help       
   delete
     -s, --host       Hostname or IP address of a service.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -p, --port       Listening port of a service.
     -h, --help       
   list
     -p, --port       Listening port of a service.
     -zk, --zk-quorum The connection string for the zookeeper ensemble, using 
zk quorum manually.
     -s, --host       Hostname or IP address of a service.
     -n, --namespace  The namespace, using kyuubi-defaults/conf if absent.
     -h, --help  
   ```
   
   
   ### BooKKeeper CTL Usage
   
   #### 1. Totoal Usage
   ```
   [bookkeeper-all-4.13.0]$ bin/bkctl
   bkctl interacts and operates Apache BookKeeper clusters
   
   Usage:  bkctl [flags] [command group] [commands]
   
       cookie              Commands on operating cookies
   
   Infrastructure commands :
   
       autorecovery        Command on some specific operation.
       bookie              Commands on operating a single bookie
       bookieid            Commands operating on bookie ids
       bookies             Commands on operating a cluster of bookies
       cluster             Commands on administrating bookkeeper clusters
   ```
   
   #### 2. When choose one command
   ````
   [bookkeeper-all-4.13.0]$ bin/bkctl bookie
   Commands on operating a single bookie
   
   Usage:  bkctl bookie [command] [command options]
   
   Commands:
   
       converttodbstorage                              Convert bookie indexes 
from
                                                       InterleavedStorage to 
DbLedgerStorage format
       converttointerleavedstorage                     Convert bookie indexes 
from
                                                       DbLedgerStorage to 
InterleavedStorage
                                                       format
       endpointinfo                                    Get all end point
                                                       information about a 
given bookie.
       flip-bookie-id                                  Update bookie id in 
ledgers
                                                       (this may take a long 
time).
       format                                          Format the current server
   
   ````
   
   
   
   
   
   ### _How was this patch tested?_
   - [X] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
   
   - [ ] Add screenshots for manual tests if appropriate
   
   - [ ] [Run 
test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) 
locally before make a pull request
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to