...
The command line for stopping Kafka nodes will include a pair of optional and mutually exclusive parameters "[--process-role = value]" OR 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.
...
Code Block |
---|
./bin/kafka-server-stop.sh --process-role= broker |
Example 2: the command to kill the process with node ID = 1 will look like:
Code Block |
---|
./bin/kafka-server-stop.sh --node-id= 1 |
When neither a "process-role" nor a "node-id" field is provided, the behavior remains unchanged -- all Kafka processes are stopped.
...