Skip to main content

Posts

Showing posts from March, 2018

Setup Apache Zookeeper Cluster in Amazon Cloud ( AWS ) or Google Cloud

Environment : Amazon AWS , Red Hat linux VM with 1 CPU 1 GB RAM ZOOKEEPER Version : 3.4.11 Step 1 : Download your Apache Zookeeper from one of the mirrors available in official ZOOKEEPER SITE  Step 2 : Copy the downloaded ( zookeeper-3.4.11.tar.gz ) file to the AWS / Google cloud servers using SCP/Winscp          ( Example: scp -i "XXXXXX.pem" zookeeper-3.4.11.tar.gz  ec2-user@ec2-xx-xx-xx-xx.us-east-2.compute.amazonaws.com:/home/ec2-user/. ) Step 3 : Or download the zookeeper directly on the servers using one of the available mirrors using WGET                  ( Example : sudo wget "http://mirror.cogentco.com/pub/apache/zookeeper/ " -O  zoo.tar.gz ) Step 4 : Untar the zookeeper & create 'myid' file in the data directory which contains just zookeeper id ( example : 1 ) Step 5 : Need to create zoo.cfg file from zoo_sample.cfg and modify the following things Step...