You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2016/09/16 15:30:22 UTC

[jira] [Commented] (HBASE-15523) enhance hbase-daemon.sh to enable autorestart.

    [ https://issues.apache.org/jira/browse/HBASE-15523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15496580#comment-15496580 ] 

Nick Dimiduk commented on HBASE-15523:
--------------------------------------

This sounds like the realm of system management tools -- write an init or upstart or whatever script for it, right? I have one in https://github.com/ndimiduk/cesnet-hbase/blob/hdp/templates/services/hbase-regionserver.conf.erb

Maybe whatever tools builds the RPM should also include system service scripts for its target platform. See also http://mail-archives.apache.org/mod_mbox/hbase-dev/201606.mbox/%3CCANZa=GsMsAz0R=BKzGO7ThZNHbh=HS5L=evofnB-A7_3BDsYqA@mail.gmail.com%3E

> enhance hbase-daemon.sh to enable autorestart.
> ----------------------------------------------
>
>                 Key: HBASE-15523
>                 URL: https://issues.apache.org/jira/browse/HBASE-15523
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Yi Liang
>            Assignee: Yi Liang
>            Priority: Minor
>         Attachments: HBASE-15523.patch
>
>
> enhance hbase-daemon.sh to enable autorestart.
> component(like master, region server) will auto-start when terminated/killed abnormally if 
>            (a) Add a new env variable $HBASE_AUTORESTART to hbase-env.sh i.e.          export HBASE_AUTORESTART=true
>           (b) Then add the following 3 simple lines(59-61) to  /bin/hbase-daemon.sh
>      
>      51 # get arguments
>      52 startStop=$1
>      53 shift
>      54
>      55 command=$1
>      56 shift
>      57
>      58 #make sure the auto-restart are default settings
>      59 if [ "$HBASE_AUTORESTART" == "true" ] && [ "$startStop" == "start" ]; then     
>      60   startStop="autorestart"     
>      61 fi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)