Zookeeper Installation
Zookeeper is a
high-performance coordinator for distributed applications. It provide
configuration information, naming, distributed synchronization and group
services as centralized service. It will start and stop the zookeeper as part
of the HBase start/stop process.
For single node HBase installation, built in zookeeper is
automatically installed and started. For multimode HBase installation, we have
to install zookeeper manually.
Copy the zookeeper tar file (zookeeper-3.4.5.tar.gz) in the
same location where HBase and Hadoop in installed.
Ø
cd
/home/hduser/utilities
Ø
tar
–xzvf zookeeper-3.4.5.tar.gz
Edit the zoo.cfg
file in zookeeper/conf folder
Ø
cd
zookeeper/conf
If the zoo.cfg file is not there, create that file from
zoo_sample.cfg
Ø
cp zoo_sample zoo.cfg
Edit the zoo.cfg file
Ø
nano
/home/hduser/zookeeper/conf/zoo.cfg
If the dataDir is not exist in that location, we have to
create that location. Here dataDir is in ‘/var/zookeeper’ location
Start Zookeeper
Ø
/home/hduser/zookeeper/bin/zkServer.sh start
No comments:
Post a Comment