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-4162) Invalid ZooKeeper version warning message
Date Sat, 19 Mar 2016 20:19:33 GMT

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

Josh Elser commented on ACCUMULO-4162:
--------------------------------------

doing an {{export ZOOKEEPER_HOME=/zookeeper-3.4.8/}} in Sven's docker image nets (with bash
debug):

{noformat}
+ '[' -z /zookeeper-3.4.8/ ']'
+ '[' '!' -d /zookeeper-3.4.8/ ']'
++ find -L /zookeeper-3.4.8/ -maxdepth 1 -name 'zookeeper-[0-9]*.jar'
++ head -1
+ ZOOKEEPER_VERSION=/zookeeper-3.4.8/zookeeper-3.4.8.jar
+ '[' -z /zookeeper-3.4.8/zookeeper-3.4.8.jar ']'
+ ZOOKEEPER_VERSION=/zookeeper-3.4.8/zookeeper-3.4.8.jar
+ ZOOKEEPER_VERSION=/zookeeper-3.4.8/zookeeper-3.4.8
+ '[' /zookeeper-3.4.8/zookeeper-3.4.8 '<' 3.4.0 ']'
+ echo 'WARN : Using Zookeeper /zookeeper-3.4.8/zookeeper-3.4.8.  Use version 3.4.0 or greater.
Older versions may not work reliably.'
WARN : Using Zookeeper /zookeeper-3.4.8/zookeeper-3.4.8.  Use version 3.4.0 or greater. Older
versions may not work reliably.
{noformat}

Which look like the following isn't working as expected (on bash 4.3)

{noformat}
ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION##$ZOOKEEPER_HOME/zookeeper-}
ZOOKEEPER_VERSION=${ZOOKEEPER_VERSION%%.jar}
{noformat}

Using Christopher's change:

{noformat}
+ '[' -z /zookeeper-3.4.8/ ']'
+ '[' '!' -d /zookeeper-3.4.8/ ']'
++ find -L /zookeeper-3.4.8/ -maxdepth 1 -name 'zookeeper-[0-9]*.jar'
++ head -1
+ ZOOKEEPER_VERSION=/zookeeper-3.4.8/zookeeper-3.4.8.jar
+ '[' -z /zookeeper-3.4.8/zookeeper-3.4.8.jar ']'
++ basename 3.4.8.jar .jar
+ ZOOKEEPER_VERSION=3.4.8
+ '[' 3.4.8 '<' 3.4.0 ']'
{noformat}

This fixes it.

> Invalid ZooKeeper version warning message
> -----------------------------------------
>
>                 Key: ACCUMULO-4162
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4162
>             Project: Accumulo
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 1.7.1
>            Reporter: Josh Elser
>            Assignee: Christopher Tubbs
>             Fix For: 1.6.6, 1.7.2, 1.8.0
>
>
> Saw this when running Sven's docker image with ZooKeeper-3.4.8:
> {noformat}
> WARN : Using Zookeeper /zookeeper-3.4.8/zookeeper-3.4.8.  Use version 3.4.0 or greater.
Older versions may not work reliably.
> {noformat}
> 3.4.8 > 3.4.0. Looks like the version detection is a bit busted.



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

Mime
View raw message