如何将Zookeeper从3.4.8升级到3.4.13?

时间:2018-08-30 06:18:12

标签: apache-zookeeper

我正在尝试将zookeeper从3.4.8升级到3.4.13。

在升级/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

answer中所述,我已从此link下载了Zookeeper,并将zookeeper-3.4.13.jar放在/usr/lib/zookeeper中,并指出了如下所示的符号链接

lrwxrwxrwx  1 root root   39 Aug 30 03:19 zookeeper.jar -> /usr/lib/zookeeper/zookeeper-3.4.13.jar

但是在重新设置Zookeeper后检查状态时,它仍然指向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

看来这是因为从/usr/lib/zookeeper/bin/zkEnv.sh加载罐子的方式

#release tarball format
for i in "$ZOOBINDIR"/../zookeeper-*.jar
do
  CLASSPATH="$i:$CLASSPATH"
done

可以让我知道这是zkEnv.sh的某个已知问题吗?这是预期的吗?

1 个答案:

答案 0 :(得分:1)

这已在动物园管理员mailing list中得到解答。 zookeeper-<version>.jar中不应有多个CLASSPATH