Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC4A3200B44 for ; Thu, 30 Jun 2016 03:23:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B49A1160A6E; Thu, 30 Jun 2016 01:23:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2A95B160A57 for ; Thu, 30 Jun 2016 03:23:13 +0200 (CEST) Received: (qmail 79080 invoked by uid 500); 30 Jun 2016 01:23:12 -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 79061 invoked by uid 99); 30 Jun 2016 01:23:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 01:23:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 05F2B2C02A0 for ; Thu, 30 Jun 2016 01:23:12 +0000 (UTC) Date: Thu, 30 Jun 2016 01:23:12 +0000 (UTC) From: "Appy (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16044) Fix 'hbase shell' output parsing in graceful_stop.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 01:23:14 -0000 [ https://issues.apache.org/jira/browse/HBASE-16044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15356288#comment-15356288 ] Appy commented on HBASE-16044: ------------------------------ The changes are in shell files so failures in last run can be safely ignored. Ready for review. > Fix 'hbase shell' output parsing in graceful_stop.sh > ---------------------------------------------------- > > Key: HBASE-16044 > URL: https://issues.apache.org/jira/browse/HBASE-16044 > Project: HBase > Issue Type: Bug > Components: scripts > Affects Versions: 2.0.0 > Reporter: Samir Ahmic > Assignee: Samir Ahmic > Priority: Critical > Fix For: 2.0.0 > > Attachments: HBASE-16044.master.001.patch > > > In some of our bash scripts we are piping command in hbase shell and then parsing response to define variables. Since 'hbase shell' output format is changed we are picking wrong values from output Here is example form gracful_stop.sh: > {code} > HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell | tail -3 | head -1) > {code} > this will return "balance_switch true" instead of previous balancer state. -- This message was sent by Atlassian JIRA (v6.3.4#6332)