Kill

kill is for killing an existing batch on the server.

Usage

usage: livy kill [-h] [--yes] --api-url API_URL [-v | -q]
                 [--highlight-logger NAME [NAME ...]]
                 [--hide-logger NAME [NAME ...]] [--pb | --no-pb]
                 [--log-file [XXXX.log] | --no-log-file]
                 [--log-file-level {DEBUG,INFO,WARNING,ERROR}]
                 N

Kill a existing batch.

positional arguments:
  N                     Livy batch ID for fetching logs

optional arguments:
  -h, --help            show this help message and exit
  --yes                 Proceed the command without showing the prompt

livy server configuration:
  --api-url API_URL     Base-URL for Livy API server

console:
  -v, --verbose         Enable debug log.
  -q, --silent          Silent mode. Only show warning and error log.
  --highlight-logger NAME [NAME ...]
                        Highlight logs from the given loggers. This option
                        only takes effect when `colorama` is installed.
  --hide-logger NAME [NAME ...]
                        Do not show logs from the given loggers.
  --pb, --with-progressbar
                        Convert TaskSetManager's `Finished task XX in stage Y`
                        logs into progress bar. This option only takes effect
                        when `tqdm` is installed.
  --no-pb, --without-progressbar
                        Not to convert TaskSetManager's logs into progress
                        bar.

file logging:
  --log-file [XXXX.log]
                        Output logs into log file. A temporary file would be
                        created if path is not specificied.
  --no-log-file         Do not output logs into log file.
  --log-file-level {DEBUG,INFO,WARNING,ERROR}
                        Set minimal log level to be written to file. Default:
                        DEBUG.

Note this tool would not directly kill the batch, it shows the batch info on the console and ask user to double confirm. Unless --yes argument is specificed.