...
The command line for stopping Kafka nodes will include a pair of optional and mutually exclusive parameters "[--process-role = value]" OR "[--node-id = value]" to support identifying a set of processes or a specific process to stop based on the contents of the node's configuration file.
...
The new script will accept an optional parameter "[`--process-role]"role`, with the value indicating killing either whether to kill Kafka broker processes or controller processes.
...
The new script will accept an optional parameter "[`--node-id]"id`, with the value indicating the specific process, identified by its node id of , that the specific process the user wish wishes to kill.
Example 1: the new command to kill all the broker processes will look like:
...