From user-return-11638-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Thu Aug 30 09:43:31 2018 Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 457BE1E08E for ; Thu, 30 Aug 2018 09:43:31 +0000 (UTC) Received: (qmail 75823 invoked by uid 500); 30 Aug 2018 09:43:30 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 75760 invoked by uid 500); 30 Aug 2018 09:43:30 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 75745 invoked by uid 99); 30 Aug 2018 09:43:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2018 09:43:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 23D731A240F for ; Thu, 30 Aug 2018 09:43:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.899 X-Spam-Level: * X-Spam-Status: No, score=1.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cloudera.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0jPqWZiTD1TZ for ; Thu, 30 Aug 2018 09:43:27 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 19A985F36D for ; Thu, 30 Aug 2018 09:43:27 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id g23-v6so3601624plq.9 for ; Thu, 30 Aug 2018 02:43:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7/tTZHCZFby292va3MgjwPSOK8iaeF6Qhm3apvTPgJ4=; b=i45aye8rNVPnWQyw+6CHr9Cy0YwsCll1KQ88b19SHHMLmZHcYCBzjULs+PS0o5UGBi KF70auZlGDINMCxK4euH8XFXmODf+AV+bD+FkS6Fs71G/DQWUdnNkYnk0FgLhpmR2TXr jJnABZRapKzo+YccoZG27euySONRfRdVQ3ggZXt9/WyV/rG+JNm5yS+YYaMAK67g3LSa Ael1FIyCFHf9Mwr2sAgMpc6gTrf/UbMPcogoJ7ASMtQKcGq6dRrV8RssddfQbDGVfNol ENMSK+IoQsgC8lUA9cYK7A9Qw9+BSfo3zcs1WRxNm4MkvVfk71hCmr+KcQNND34b3WPm D4ag== X-Gm-Message-State: APzg51BP6xlCFZZzKmlnz2cOolnNBa2UdYGi3q91Ryc/PhG3meII7/1y diDAUYm6IlO/93iSxqoXd4puC4W82l2kjJ3iuoaF/Sw+ X-Google-Smtp-Source: ANB0VdbN2zz/7Ug842vc7Ncln4oaceLhe8OWGBp0e5Zj7WIfRG950467H3YxHyOE9u7IWiFmTLX9w8cklXFhz9/v5WA= X-Received: by 2002:a17:902:7d87:: with SMTP id a7-v6mr2715231plm.103.1535622205494; Thu, 30 Aug 2018 02:43:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Norbert Kalmar Date: Thu, 30 Aug 2018 11:43:14 +0200 Message-ID: Subject: Re: How to upgrade zookeeper from 3.4.8 to 3.4.13? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="0000000000001180a10574a3e8b1" --0000000000001180a10574a3e8b1 Content-Type: text/plain; charset="UTF-8" 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 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 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? > --0000000000001180a10574a3e8b1--