You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Nick Dimiduk <nd...@gmail.com> on 2014/01/07 19:32:18 UTC
Re: control HBase stop / start from supervisord
Moving to HBase-user
Hi Mathan,
Have a look at hbase-daemon.sh in $HBASE_HOME/bin. It wraps up the details
necessary for building the java command used to start an HBase process (it
also does some other house-cleaning like log rotation, which you probably
also want). Use it to start and stop RegionServer and Master processes on
your individual hosts. You'll probably need to wrap it or steal its logic
for your own supervisord script.
Actually, after reading a bit about supervisord, you may need to modify
this script to support launching the process in the foreground. Have a look
and let us know what you find.
Thanks,
Nick
On Tue, Jan 7, 2014 at 6:00 AM, mathan kumar <im...@gmail.com>wrote:
> I am trying to control HBase using supervisord to start / stop methods so
> that it would be easy to do these in browser instead of using scripts
> within the machine by loggin in.
>
> I can able to start the HBase as a user using start-hbase.sh script, But
> could not stop using the same in supervisord browser stop option.
>
> The reason is when supervisord starts the start-hbase.sh script HBase is
> actually started as child process to start-hbase where supervisord does not
> control any child process while stopping the process created by supervisord.
>
> Is there any other way to achieve this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Phoenix HBase User" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phoenix-hbase-user+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
答复: control HBase stop / start from supervisord
Posted by 谢良 <xi...@xiaomi.com>.
Hi Mathan,
Maybe you could get some ideas from: https://github.com/XiaoMi/minos
we do use the modified supervisor to start/stop HBase on all our cluster:)
Thanks,
________________________________________
发件人: Nick Dimiduk [ndimiduk@gmail.com]
发送时间: 2014年1月8日 2:32
收件人: mathan kumar
抄送: hbase-user
主题: Re: control HBase stop / start from supervisord
Moving to HBase-user
Hi Mathan,
Have a look at hbase-daemon.sh in $HBASE_HOME/bin. It wraps up the details
necessary for building the java command used to start an HBase process (it
also does some other house-cleaning like log rotation, which you probably
also want). Use it to start and stop RegionServer and Master processes on
your individual hosts. You'll probably need to wrap it or steal its logic
for your own supervisord script.
Actually, after reading a bit about supervisord, you may need to modify
this script to support launching the process in the foreground. Have a look
and let us know what you find.
Thanks,
Nick
On Tue, Jan 7, 2014 at 6:00 AM, mathan kumar <im...@gmail.com>wrote:
> I am trying to control HBase using supervisord to start / stop methods so
> that it would be easy to do these in browser instead of using scripts
> within the machine by loggin in.
>
> I can able to start the HBase as a user using start-hbase.sh script, But
> could not stop using the same in supervisord browser stop option.
>
> The reason is when supervisord starts the start-hbase.sh script HBase is
> actually started as child process to start-hbase where supervisord does not
> control any child process while stopping the process created by supervisord.
>
> Is there any other way to achieve this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Phoenix HBase User" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phoenix-hbase-user+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
Re: control HBase stop / start from supervisord
Posted by Ted Yu <yu...@gmail.com>.
Please see this JIRA as well:
HBASE-7386 Investigate providing some supervisor support for znode deletion
On Tue, Jan 7, 2014 at 10:32 AM, Nick Dimiduk <nd...@gmail.com> wrote:
> Moving to HBase-user
>
> Hi Mathan,
>
> Have a look at hbase-daemon.sh in $HBASE_HOME/bin. It wraps up the details
> necessary for building the java command used to start an HBase process (it
> also does some other house-cleaning like log rotation, which you probably
> also want). Use it to start and stop RegionServer and Master processes on
> your individual hosts. You'll probably need to wrap it or steal its logic
> for your own supervisord script.
>
> Actually, after reading a bit about supervisord, you may need to modify
> this script to support launching the process in the foreground. Have a look
> and let us know what you find.
>
> Thanks,
> Nick
>
>
> On Tue, Jan 7, 2014 at 6:00 AM, mathan kumar <immathankumar@gmail.com
> >wrote:
>
> > I am trying to control HBase using supervisord to start / stop methods so
> > that it would be easy to do these in browser instead of using scripts
> > within the machine by loggin in.
> >
> > I can able to start the HBase as a user using start-hbase.sh script, But
> > could not stop using the same in supervisord browser stop option.
> >
> > The reason is when supervisord starts the start-hbase.sh script HBase is
> > actually started as child process to start-hbase where supervisord does
> not
> > control any child process while stopping the process created by
> supervisord.
> >
> > Is there any other way to achieve this.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Phoenix HBase User" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to phoenix-hbase-user+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
>