Usage

  1. bin/kyuubi-ctl --help

Output

  1. kyuubi 1.9.1
  2. Usage: kyuubi-ctl [create|get|delete|list] [options]
  3. -zk, --zk-quorum <value>
  4. The connection string for the zookeeper ensemble, using zk quorum manually.
  5. -n, --namespace <value> The namespace, using kyuubi-defaults/conf if absent.
  6. -s, --host <value> Hostname or IP address of a service.
  7. -p, --port <value> Listening port of a service.
  8. -v, --version <value> Using the compiled KYUUBI_VERSION default, change it if the active service is running in another.
  9. -b, --verbose Print additional debug output.
  10. Command: create [server]
  11. Command: create server
  12. Expose Kyuubi server instance to another domain.
  13. Command: get [server|engine] [options]
  14. Get the service/engine node info, host and port needed.
  15. Command: get server
  16. Get Kyuubi server info of domain
  17. Command: get engine
  18. Get Kyuubi engine info belong to a user.
  19. -u, --user <value> The user name this engine belong to.
  20. -et, --engine-type <value>
  21. The engine type this engine belong to.
  22. -es, --engine-subdomain <value>
  23. The engine subdomain this engine belong to.
  24. -esl, --engine-share-level <value>
  25. The engine share level this engine belong to.
  26. Command: delete [server|engine] [options]
  27. Delete the specified service/engine node, host and port needed.
  28. Command: delete server
  29. Delete the specified service node for a domain
  30. Command: delete engine
  31. Delete the specified engine node for user.
  32. -u, --user <value> The user name this engine belong to.
  33. -et, --engine-type <value>
  34. The engine type this engine belong to.
  35. -es, --engine-subdomain <value>
  36. The engine subdomain this engine belong to.
  37. -esl, --engine-share-level <value>
  38. The engine share level this engine belong to.
  39. Command: list [server|engine] [options]
  40. List all the service/engine nodes for a particular domain.
  41. Command: list server
  42. List all the service nodes for a particular domain
  43. Command: list engine
  44. List all the engine nodes for a user
  45. -u, --user <value> The user name this engine belong to.
  46. -et, --engine-type <value>
  47. The engine type this engine belong to.
  48. -es, --engine-subdomain <value>
  49. The engine subdomain this engine belong to.
  50. -esl, --engine-share-level <value>
  51. The engine share level this engine belong to.
  52. -h, --help Show help message and exit.

Manage kyuubi servers

You can specify the zookeeper address(--zk-quorum) and namespace(--namespace), version(--version) parameters to query a specific kyuubi server cluster.

List server

List all the service nodes for a particular domain.

  1. bin/kyuubi-ctl list server

Create server

Expose Kyuubi server instance to another domain.

First read kyuubi.ha.namespace in conf/kyuubi-defaults.conf, if there are server instances under this namespace, register them in the new namespace specified by the --namespace parameter.

  1. bin/kyuubi-ctl get server --host XXX --port YYY

Get server

Get Kyuubi server info of domain.

  1. bin/kyuubi-ctl get server --host XXX --port YYY

Delete server

Delete the specified service node for a domain.

After the server node is deleted, the kyuubi server stops opening new sessions and waits for all currently open sessions to be closed before the process exits.

  1. bin/kyuubi-ctl delete server --host XXX --port YYY

Manage kyuubi engines

You can also specify the engine type(--engine-type), engine share level subdomain(--engine-subdomain) and engine share level(--engine-share-level).

If not specified, the configuration item kyuubi.engine.type of kyuubi-defaults.conf read, the default value is SPARK_SQL, kyuubi.engine.share.level.subdomain, the default value is default, kyuubi.engine.share.level, the default value is USER.

If the engine pool mode is enabled through kyuubi.engine.pool.size, the subdomain consists of kyuubi.engine.pool.name and a number below size, e.g. engine-pool-0 .

--engine-share-level supports the following enum values.

  • CONNECTION

The engine Ref Id (UUID) must be specified via --engine-subdomain.

  • USER:

Default Value.

  • GROUP:

The --user parameter is the group name corresponding to the user.

  • SERVER:

The --user parameter is the user who started the kyuubi server.

List engine

List all the engine nodes for a user.

  1. bin/kyuubi-ctl list engine --user AAA

The management share level is SERVER, the user who starts the kyuubi server is A, the engine is TRINO, and the subdomain is adhoc.

  1. bin/kyuubi-ctl list engine --user A --engine-type TRINO --engine-subdomain adhoc --engine-share-level SERVER

Get engine

Get Kyuubi engine info belong to a user.

  1. bin/kyuubi-ctl get engine --user AAA --host XXX --port YYY

Delete engine

Delete the specified engine node for user.

After the engine node is deleted, the kyuubi engine stops opening new sessions and waits for all currently open sessions to be closed before the process exits.

  1. bin/kyuubi-ctl delete engine --user AAA --host XXX --port YYY