# Replace branch name with the branch you want to build.
$ git clone -b branch-3.5.5 https://github.com/apache/zookeeper
$ cd zookeeper
$ mvn package -DskipTests
$ mvn install -DskipTests
-
Rename the config/zoo_sample.cfg to config/zoo.cfg.
-
Create a server_envs.sh file with the server environment variables containing:
export SERVER_JVMFLAGS=" -Dzookeeper.serverCnxnFactory=org.apache.zookeeper.server.NettyServerCnxnFactory -Dzookeeper.ssl.keyStore.location=/path/to/pravega/config/server.keystore.jks -Dzookeeper.ssl.keyStore.password=1111_aaaa -Dzookeeper.ssl.trustStore.location=/path/to/pravega/config/client.truststore.jks -Dzookeeper.ssl.trustStore.password=1111_aaaa"
-
Execute
$ source server_envs.sh
. -
Edit the conf/zoo.cfg by adding secureClientPort=2281
-
Create a client_envs.sh file containing:
export CLIENT_JVMFLAGS=" -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.ClientCnxnSocketNetty -Dzookeeper.client.secure=true -Dzookeeper.ssl.keyStore.location=/path/to/pravega/config/server.keystore.jks -Dzookeeper.ssl.keyStore.password=1111_aaaa -Dzookeeper.ssl.trustStore.location=/path/to/pravega/config/client.truststore.jks -Dzookeeper.ssl.trustStore.password=1111_aaaa"
-
Execute
$ source client_envs.sh
on the client side.
$ bin/zkServer.sh start
$ bin/zkCli.sh -server localhost:2281
# Verify client is able to talk to the server CLI is able to communicate with the server.
$