You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/07/22 02:32:55 UTC
[GitHub] [incubator-kyuubi] yaooqinn edited a comment on pull request #826: [KYUUBI #825] Introduce jcommander framework to kyuubi project
yaooqinn edited a comment on pull request #826:
URL: https://github.com/apache/incubator-kyuubi/pull/826#issuecomment-884617534
> Hi @yaooqinn @pan3793 @turboFei, review again when you are free , thanks.
>
> ### cmd examples
> 1. input `--help`
>
> ```
> Usage: kyuubi-ctl <server|engine|config> [actions] [options]
>
> engine Commands on operating engine
> server Commands on operating server
> config Commands on operating config
> ```
>
> 1. input `server --help`
>
> ```
> Usage: kyuubi-ctl server [actions] [options]
> create
> -zk, --zk-quorum The connection string for the zookeeper ensemble, using zk quorum manually.
> -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.
> -h, --help
> get
> -zk, --zk-quorum The connection string for the zookeeper ensemble, using zk quorum manually.
> -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.
> -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.
> -s, --host Hostname or IP address of a service.
> -p, --port Listening port of a service.
> -h, --help
> list
> -zk, --zk-quorum The connection string for the zookeeper ensemble, using zk quorum manually.
> -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.
> -h, --help
> ```
>
> 1. input `server get --help`
>
> ```
> get
> -zk, --zk-quorum The connection string for the zookeeper ensemble, using
> zk quorum manually.
> -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.
> -h, --help
> ```
>
> ### Easy to add new more service / command
> 1. Add new command which extends `Command`
> 2. Add the new command to service command group
> 3. If add new service type, need to update `Kyuubi`
> 4. ok
>
> ![image](https://user-images.githubusercontent.com/86483005/126579899-83b2ef6f-dc22-43d4-baa4-fc7313bc01ce.png)
the behavior changes a lot for each command, the acceptable args change from cmd to cmd. I can remember each very well, but the create server logic seems to be wrong according to the help instructions.
--
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: commits-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org