From ffc856d974cc3dc2bd7864e662df0a5898447883 Mon Sep 17 00:00:00 2001 From: Sugu Sougoumarane Date: Wed, 8 Nov 2017 16:28:03 -0800 Subject: [PATCH] zookeeper: 3.4.6->3.4.10 --- bootstrap.sh | 4 +++- docker/bootstrap/Dockerfile.common | 1 + docs/getting-started/local-instance/index.html | 3 ++- go/zk/zkctl/zksrv.sh | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 8c919a6ef3..2192c6e0f6 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -67,7 +67,8 @@ fi ln -snf $protoc_dist/bin/protoc $VTROOT/bin/protoc # install zookeeper -zk_ver=3.4.6 +# TODO(sougou): when version changes, see if we can drop the 'zip -d' hack to get the fatjars working. +zk_ver=3.4.10 zk_dist=$VTROOT/dist/vt-zookeeper-$zk_ver if [ -f $zk_dist/.build_finished ]; then echo "skipping zookeeper build. remove $zk_dist to force rebuild." @@ -78,6 +79,7 @@ else tar -xzf zookeeper-$zk_ver.tar.gz && \ mkdir -p $zk_dist/lib && \ cp zookeeper-$zk_ver/contrib/fatjar/zookeeper-$zk_ver-fatjar.jar $zk_dist/lib && \ + zip -d $zk_dist/lib/zookeeper-$zk_ver-fatjar.jar 'META-INF/*.SF' 'META-INF/*.RSA' 'META-INF/*SF' && \ rm -rf zookeeper-$zk_ver zookeeper-$zk_ver.tar.gz) [ $? -eq 0 ] || fail "zookeeper build failed" touch $zk_dist/.build_finished diff --git a/docker/bootstrap/Dockerfile.common b/docker/bootstrap/Dockerfile.common index 9e6d949da2..b4d336e952 100644 --- a/docker/bootstrap/Dockerfile.common +++ b/docker/bootstrap/Dockerfile.common @@ -26,6 +26,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins virtualenv \ unzip \ xvfb \ + zip \ # gRPC PHP requirements \ libz-dev \ php-pear \ diff --git a/docs/getting-started/local-instance/index.html b/docs/getting-started/local-instance/index.html index da2ab3c3a0..43abf925de 100644 --- a/docs/getting-started/local-instance/index.html +++ b/docs/getting-started/local-instance/index.html @@ -445,10 +445,11 @@ on your path.
  • bison
  • curl
  • unzip
  • +
  • zip
  • These can be installed with the following apt-get command:

    -
    $ sudo apt-get install make automake libtool python-dev python-virtualenv python-mysqldb libssl-dev g++ git pkg-config bison curl unzip
    +
    $ sudo apt-get install make automake libtool python-dev python-virtualenv python-mysqldb libssl-dev g++ git pkg-config bison curl unzip zip
     
  • If you decided to use ZooKeeper in step 3, you also need to install a Java Runtime, such as OpenJDK.

    diff --git a/go/zk/zkctl/zksrv.sh b/go/zk/zkctl/zksrv.sh index 81162af82b..59106de96b 100755 --- a/go/zk/zkctl/zksrv.sh +++ b/go/zk/zkctl/zksrv.sh @@ -21,7 +21,7 @@ logdir="$1" config="$2" pidfile="$3" -zk_ver=3.4.6 +zk_ver=3.4.10 classpath="$VTROOT/dist/vt-zookeeper-$zk_ver/lib/zookeeper-$zk_ver-fatjar.jar:/usr/local/lib/zookeeper-$zk_ver-fatjar.jar:/usr/share/java/zookeeper-$zk_ver.jar" mkdir -p "$logdir"