Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCD5D177D1 for ; Fri, 13 Mar 2015 17:48:42 +0000 (UTC) Received: (qmail 70990 invoked by uid 500); 13 Mar 2015 17:48:42 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 70798 invoked by uid 500); 13 Mar 2015 17:48:42 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 70610 invoked by uid 99); 13 Mar 2015 17:48:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2015 17:48:42 +0000 Date: Fri, 13 Mar 2015 17:48:42 +0000 (UTC) From: "Gustavo Anatoly (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13229) Bug compatibility validation to start local-regionservers.sh and local-master-backup.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14360760#comment-14360760 ] Gustavo Anatoly commented on HBASE-13229: ----------------------------------------- Hi, [~apurtell] {quote} ... but it's not a bug technically {quote} I agree, thinking a little better this issue could be an improvement based on compatibility. > Bug compatibility validation to start 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)