Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

kafka-rolling-restart --cluster-type kafka does not respond #261

Open
tariq452 opened this issue Oct 9, 2020 · 2 comments
Open

kafka-rolling-restart --cluster-type kafka does not respond #261

tariq452 opened this issue Oct 9, 2020 · 2 comments

Comments

@tariq452
Copy link

tariq452 commented Oct 9, 2020

Hi
I tried run Kafka-rolling-restart --cluster-type Kafka but does not respond

image
my kafka config
image

I don't know where should I check or trace it debuging

@himynameisalan
Copy link

Same issue

@matt448
Copy link

matt448 commented Aug 17, 2022

I ran into this same problem. For me it turned out that my ssh user didn't have sudo setup for no password. The user executing the stop and start commands needed an entry in the /etc/sudoers file with the NOPASSWD option.

It was a little tough to figure out because there were no errors from the rolling restart script. It would just hang at 'Stopping' on the first broker. To troubleshoot I changed stop and start options to do something simple:

kafka-rolling-restart --cluster-type kafka  --start-command "echo > /tmp/testing-start" --stop-command "echo > /tmp/testing-stop"

and I saw that the script was indeed connecting over ssh and was executing the stop command (the file /tmp/testing-stop was created). Then seeing in the help output "(do not include sudo)" for start/stop overrides it led me to the conclusion that the problem was with sudo requiring a password. After configuring password-less sudo for my user on all the brokers the script worked perfect.

It might be a good idea to add something to the documentation about needing password-less sudo on the brokers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants