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

stack commented on HBASE-11948:
-------------------------------

Looks like this script was not tested on cluster. Its broke.

In particular, it does this:

+local=false
+localhostname=`/bin/hostname`
+
+if [ "$localhostname" == "$hostname" ]; then
+  local=true
+fi

... then this is the test for whether something is local:

+  if [ "$local" ]; then



> graceful_stop.sh should use hbase-daemon.sh when executed on the 
> decomissioned node
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-11948
>                 URL: https://issues.apache.org/jira/browse/HBASE-11948
>             Project: HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.99.0, 0.94.23, 0.98.6
>         Environment: Linux
>            Reporter: Sebastien Barrier
>            Assignee: Sebastien Barrier
>            Priority: Minor
>              Labels: patch
>             Fix For: 2.0.0, 0.98.7, 0.99.1
>
>         Attachments: 11948-v2.txt, HBASE-11948.patch
>
>
> The script graceful_stop.sh should use hbase-daemon.sh instead of 
> hbase-daemons.sh when it's executed on the local decomissioned node.
> hbase-daemons.sh use ssh to perform the stop/start action, which mean the  
> local server public key need to be added in the known_hosts.
> hbase-daemon.sh is more appropriate to stop/start on a local host as it don't 
> need ssh to perform the stop/start action.



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

Reply via email to