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

Sean Busbey commented on HBASE-13229:
-------------------------------------

okay, I updated the subject for the new scope and removed the duplicate 
comments.

[~gustavoanatoly] could you make an updated patch that specifies bash as the 
other scripts do? Also, please add a blurb to the "basic prerequisites" section 
of the [configuration chapter of the ref 
guide|https://github.com/apache/hbase/blob/master/src/main/asciidoc/_chapters/configuration.adoc]
 that under "Linux Shell" or similar that specifies we rely on bash being 
installed on the system (I don't think we know right now what versions of bash, 
so just leave versions out).

> Specify bash for local-regionservers.sh and local-master-backup.sh
> ------------------------------------------------------------------
>
>                 Key: HBASE-13229
>                 URL: https://issues.apache.org/jira/browse/HBASE-13229
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.94.0, 0.98.0, 1.0.0
>            Reporter: Gustavo Anatoly
>            Assignee: Gustavo Anatoly
>            Priority: Minor
>              Labels: beginner
>         Attachments: HBASE-13229.patch
>
>
> Running the following line, using /bin/sh:
> $ bin/local-regionservers.sh --config ~/hbase-dev/hbase-conf/conf/ start 1 2 
> 3 4 5
> Produces the output below:
> bin/local-regionservers.sh: 55: bin/local-regionservers.sh: [[: not found
> Invalid argument
> bin/local-regionservers.sh: 55: bin/local-regionservers.sh: [[: not found
> Invalid argument
> bin/local-regionservers.sh: 55: bin/local-regionservers.sh: [[: not found
> Invalid argument
> bin/local-regionservers.sh: 55: bin/local-regionservers.sh: [[: not found
> Invalid argument
> bin/local-regionservers.sh: 55: bin/local-regionservers.sh: [[: not found
> Invalid argument
> Considering:
> {code}
> if [[ "$i" =~ ^[0-9]+$ ]]; then
>    run_master $cmd $i
>   else
>    echo "Invalid argument"
> fi
> {code}
> The reasons is that the regex operator =~ doesn't have compatibility with 
> /bin/sh but works running /bin/bash 
> $ bash -x bin/local-regionservers.sh --config ~/hbase-dev/hbase-conf/conf/ 
> start 1 2 3 4 5



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

Reply via email to