zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Kalmar <nkal...@cloudera.com.INVALID>
Subject Re: How to upgrade zookeeper from 3.4.8 to 3.4.13?
Date Thu, 30 Aug 2018 09:43:14 GMT
Hi,

zkEnv.sh intentionally has the wild card, it's not a bug. As the zookeeper
jar has the version in its name due to the maven release, somehow we have
to point to the jar, but hard coding the version would be prone to error.

Anyway, to answer your question, first of all I would just try to delete
the old .jar, and see if that solves the problem.

Regards,
Norbert

On Thu, Aug 30, 2018 at 9:01 AM Debraj Manna <subharaj.manna@gmail.com>
wrote:

> Cross-posting from stackoverflow
> <
> https://stackoverflow.com/questions/52090357/how-to-upgrade-zookeeper-from-from-3-8-to-3-13
> >
>
> I am trying to upgrade zookeeper from 3.4.8 to 3.4.13.
>
> Before upgrade the content of /usr/lib/zookeeper
>
> drwxr-xr-x 5 root root 4.0K Aug 23 08:39 . drwxr-xr-x 77 root root 12K Aug
> 23 08:50 .. drwxr-xr-x 2 root root 4.0K Aug 23 08:39 bin lrwxrwxrwx 1 root
> root 19 May 24 11:25 conf -> /etc/zookeeper/conf drwxr-xr-x 2 root root
> 4.0K Aug 23 08:39 lib -rw-r--r-- 1 root root 12K May 24 11:25 LICENSE.txt
> -rw-r--r-- 1 root root 170 May 24 11:25 NOTICE.txt -rw-r--r-- 1 root root
> 1.3M Aug 23 08:39 zookeeper-3.4.8.jar lrwxrwxrwx 1 root root 38 Aug 23
> 08:39 zookeeper.jar -> /usr/lib/zookeeper/zookeeper-3.4.8.jar
>
> As mentioned in answer <https://serverfault.com/a/758671/300869> I have
> downloaded the zookeeper from this link
> <
> http://mirrors.fibergrid.in/apache/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz
> >
> and
> placed the zookeeper-3.4.13.jar in /usr/lib/zookeeper and pointed the
> symbolic link like below
>
> lrwxrwxrwx  1 root root   39 Aug 30 03:19 zookeeper.jar ->
> /usr/lib/zookeeper/zookeeper-3.4.13.jar
>
> But on checking the status after resarting zookeeper it is still pointing
> to 3.4.8
>
> ubuntu@vrni-platform:/etc/zookeeper/conf$ telnet localhost 2181
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> status
> Zookeeper version: 3.4.8--1, built on 02/06/2016 03:18 GMT
>
> It appears this is because of the way the jars are loaded from
> /usr/lib/zookeeper/bin/zkEnv.sh
>
> #release tarball format
> for i in "$ZOOBINDIR"/../zookeeper-*.jar
> do
>   CLASSPATH="$i:$CLASSPATH"
> done
>
> Can someone let me know is this some known issue is zkEnv.sh? Is this
> expected?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message