hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Appy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-16044) Fix 'hbase shell' output parsing in graceful_stop.sh
Date Mon, 11 Jul 2016 18:31:11 GMT

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

Appy updated HBASE-16044:
-------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> 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, shell
>    Affects Versions: 2.0.0
>            Reporter: Samir Ahmic
>            Assignee: Appy
>            Priority: Critical
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16044.master.001.patch, HBASE-16044.master.002.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)

Mime
View raw message