zookeeper

Download

zookeeper is run by java, so we need install java first

java download

Get link from website, then copy to linux server

wget  ****
tar xf jdk-11.0.1_linux-x64_bin.tar.gz
vim /etc/profile
#add below content
===================
JAVA_HOME=/[your_java_path]/jdk-11.0.1
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export JRE_HOME
export PATH
export CLASSPATH
===================

source /etc/profile
java --version
ln -s /[your_java_path]/jdk1.8.0_131/bin/java /usr/bin/java



zookeeper download

config Clustered (Multi-Server) Setup

Start

#need start by sequence, from server.1 to server.end

Basic troubleshoot

#check error log for figure out problems

Test your deployment by connecting to the hosts:

you can run the following command to execute simple operations:

Change in script

Last updated