Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> Does ShutdownBroker returns meaningful return code

Copy link to this message
Re: Does ShutdownBroker returns meaningful return code
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:

> https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools
> 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]>
> wrote:
> > 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