accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-3655) tool.sh erroneously complains about multiple zookeeper*.jar files in ZOOKEEPER_HOME
Date Tue, 10 Mar 2015 20:01:38 GMT

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

Josh Elser commented on ACCUMULO-3655:
--------------------------------------

{code}
-if [ `eval $ZOOKEEPER_CMD | wc -l` != "1" ] ; then
+if [[ $(eval $ZOOKEEPER_CMD | wc -l) != "1" ]] ; then
{code}

Was the change from ACCUMULO-2423 which broke this.

> tool.sh erroneously complains about multiple zookeeper*.jar files in ZOOKEEPER_HOME
> -----------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-3655
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3655
>             Project: Accumulo
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Blocker
>             Fix For: 1.7.0
>
>
> Noticed that tool.sh doesn't properly check for a single zookeeper.jar in $ZOOKEEPER_HOME.
It incorrectly errored on my machine:
> {noformat}
> ➜ jelser@hw10447.local % echo $(eval $ZOOKEEPER_CMD | wc -l)
> 1
> ➜ jelser@hw10447.local % echo "$(eval $ZOOKEEPER_CMD | wc -l)"
>        1
> {noformat}
> I think the issue is that the leading whitespace is significant.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message