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

Switch to Threaded View
Kafka >> mail # user >> question about Controlled Shutdown


Copy link to this message
-
Re: question about Controlled Shutdown
Nice!

Thanks,

Jason
On Wed, Jun 19, 2013 at 9:16 PM, Jun Rao <[EMAIL PROTECTED]> wrote:

> Actually, we recently added the option to enable controlled shutdown in the
> broker shutdown hook. I have updated our wiki accordingly (
> https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools).
>
> Thanks,
>
> Jun
>
>
> On Wed, Jun 19, 2013 at 6:32 PM, Jason Rosenberg <[EMAIL PROTECTED]> wrote:
>
> > Was just reading about Controlled Shutdown here:
> > https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools
> >
> > Is this something that can be invoked from code, from within a container
> > running the KafkaServer?
> >
> > Currently I launch kafka.server.KafkaServer directly from our java app
> > container.  This allows it to play nice within our deployment system for
> > rolling restarts, graceful shutdown, etc.
> >
> > It seems I should now be calling kafka.admin.ShutdownBroker before
> calling
> > KafkaServer.shutdown.  Is that right?  Will it work for this to happen in
> > the same process?
> >
> > Is there a reason why this wouldn't be automatic from within
> > KafkaServer.shutdown?
> >
> > Thanks,
> >
> > Jason
> >
>