You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Ghosh, Achintya (Contractor)" <Ac...@comcast.com> on 2017/07/05 21:55:06 UTC
Kafka shutdown gracefully
Hi team,
What is the command to shutdown kafka server gracefully instead of using 'kill -9 PID'?
If we use bin/kafka-server-stop.sh it shows "No kafka server to stop" but the service actually running and I see the PID by using "ps -ef|grep kafka"
Thanks
Achintya
Re: Kafka shutdown gracefully
Posted by Tom Bentley <t....@gmail.com>.
FTR, the problem with the 4096 character limit is a known issue:
https://issues.apache.org/jira/browse/KAFKA-4931
Cheers,
Tom
On 6 July 2017 at 13:55, Kamal C <ka...@gmail.com> wrote:
> Don't use `kill -9 PID`. Use `kill -s TERM PID` - sends a signal to the
> process to end, and will trigger any cleanup routines before exiting.
>
> Since the output of the `ps` command used by kafka-server-stop.sh exceeds
> 4096 characters. It shows "No kafka server to stop"
>
> On Thu, Jul 6, 2017 at 3:25 AM, Ghosh, Achintya (Contractor) <
> Achintya_Ghosh@comcast.com> wrote:
>
> > Hi team,
> >
> > What is the command to shutdown kafka server gracefully instead of using
> > 'kill -9 PID'?
> >
> > If we use bin/kafka-server-stop.sh it shows "No kafka server to stop" but
> > the service actually running and I see the PID by using "ps -ef|grep
> kafka"
> >
> >
> > Thanks
> > Achintya
> >
>
Re: Kafka shutdown gracefully
Posted by Kamal C <ka...@gmail.com>.
Don't use `kill -9 PID`. Use `kill -s TERM PID` - sends a signal to the
process to end, and will trigger any cleanup routines before exiting.
Since the output of the `ps` command used by kafka-server-stop.sh exceeds
4096 characters. It shows "No kafka server to stop"
On Thu, Jul 6, 2017 at 3:25 AM, Ghosh, Achintya (Contractor) <
Achintya_Ghosh@comcast.com> wrote:
> Hi team,
>
> What is the command to shutdown kafka server gracefully instead of using
> 'kill -9 PID'?
>
> If we use bin/kafka-server-stop.sh it shows "No kafka server to stop" but
> the service actually running and I see the PID by using "ps -ef|grep kafka"
>
>
> Thanks
> Achintya
>