[ 
https://issues.apache.org/jira/browse/HBASE-13229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Busbey updated HBASE-13229:
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.98.12
                   0.94.27
                   1.1.0
                   1.0.1
                   2.0.0
           Status: Resolved  (was: Patch Available)

 Pushed, then realized I missed fixing the commit message to include the jira 
reference.

Here's the set of commits: 
[master|https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=commit;h=ca8876a9f2534f2ab0b416aecb4ac476da9747f8],
 
[branch-1|https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=commit;h=58ab201be341f02829286f036a7401d0806eb999],
 
[branch-1.0|https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=commit;h=6b37ae3d77e68458cae385b11163ac5108af7655],
 
[0.98|https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=commit;h=02a1f3a5ba46c4d8d72135607e5d20355d1061a2],
 
[0.94|https://git1-us-west.apache.org/repos/asf?p=hbase.git;a=commit;h=9e6b65226a59aa13d470b6d1aaaae83eb7035ce9].

I filed HBASE-13263 to help make sure I don't do this again.

> 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
>             Fix For: 2.0.0, 1.0.1, 1.1.0, 0.94.27, 0.98.12
>
>         Attachments: HBASE-12339-v1.patch, HBASE-13229-v2.patch, 
> 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