hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Appy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16044) Fix 'hbase shell' output parsing in bash scripts
Date Wed, 29 Jun 2016 00:49:10 GMT

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

Appy commented on HBASE-16044:
------------------------------

Discussed with [~stack] offline. I am fine with reverting the earlier changes (HBASE-15965
and HBASE-15849) from branch-1 even though they are within our operational compatibility guidelines.
I think his concern for usability triumphs here, lets make minor release (if 1.4 does comes
out) easier for users.
These two changes are not critical and don't need to be necessarily backported. It's better
to do them only in major release (2.0). One of them is a step towards putting a better system
in place (interactive/non-interactive compat, also discussed [here|https://issues.apache.org/jira/browse/HBASE-16078?focusedCommentId=15353210&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15353210]).

> Fix 'hbase shell' output parsing in bash scripts
> ------------------------------------------------
>
>                 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
>
>
> 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