-Re: Does ShutdownBroker returns meaningful return code
Vadim Keylis 2013-07-11, 04:48
Joel. How do you guys do kafka service shutdown and startup?
On Wed, Jul 10, 2013 at 5:32 PM, Joel Koshy <[EMAIL PROTECTED]> wrote:
> has more details. The ShutdownBroker tool does not return anything.
> i.e., it does not exit with a System.exit code to pass back to a
> shell. it only logs if controlled shutdown was complete or not. You
> will need to configure the number of shutdown retries and retry
> interval suitably for the controlled shutdown to complete. E.g., if
> you have a very large number of partitions led by a broker it may take
> more time to do a controlled shutdown on that broker (because leaders
> need to be moved). (This yet another reason why we recommend that you
> maintain even distribution of leaders - this can be accomplished by
> running the PreferredReplicaLeaderElection command.)
> On Wed, Jul 10, 2013 at 4:06 PM, Vadim Keylis <[EMAIL PROTECTED]>
> > We have deployed kafka 0.8 beta1. It was my understanding that
> > ShutdownBroker program needs be used to initiate proper shutdown of the
> > server. We are going to use this script in automated fashion. Does the
> > script return meaningful error code that can be capture by calling script
> > and act up on? What other proper ways to shutdown kafka 08?
> > Thanks,
> > Vadim