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

yi liang commented on HBASE-15523:
----------------------------------

hi Dima Spivak,
   This issue come from one of my customers, they use management console like 
Ambari-UI to manage the hbase, and start function of Hbase in Ambari-UI is 
hard-coded. So every time, when hbase component like region server terminated 
abnormally, they have to manually restart the HBase Component. they can not 
tolerate with it, so they want the flexibitliy to use an env variable they can 
input in the console to control the behavior.  

> 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)

Reply via email to