Quick-Start Zookeeper for Linux Mint
The Linux Tutorial Shows You Step-by-step How-to Getting-Started with Apache Zookeeper on Linux Mint Mate/Cinnamon/KDE/Xfce GNU Desktop.
ZooKeeper allows distributed processes to coordinate with each other through a shared hierarchal namespace which is organized similarly to a standard file system. The name space consists of data registers – called znodes, in ZooKeeper parlance – and these are similar to files and directories. Unlike a typical file system, which is designed for storage, ZooKeeper data is kept in-memory, which means ZooKeeper can acheive high throughput and low latency numbers.
How-to Install Zookeeper on Linux Mint Linux:Setting Up Zookeeper for Linux Mint
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)
Making the Zookeeper Data Directory
sudo su -c "mkdir /var/lib/zookeeper"
Creating the Zookeeper Configuration File
sudo su -c "nano conf/zoo.cfg"
Append for Example:
tickTime=2000 dataDir=/var/lib/zookeeper clientPort=2181
tickTime: the basic time unit in milliseconds used by ZooKeeper. It is used to do heartbeats and the minimum session timeout will be twice the tickTime.
Ctrl+x to Save & Exit from nano Editor :)
Starting Up the Zookeeper Server
sudo bin/zkServer.sh start
Connecting by Java Client to Zookeeper Server
bin/zkCli.sh -server 127.0.0.1:2181
The Zookeeper Shell Prompt:
Exploring Zookeeper Shell
Showing Up Commands:
[zkshell: 0] help
Create a Z-Node:
[zkshell: 0] create /zk_node my_data
Listing the Z-Nodes:
[zkshell: 0] ls /
Showing the Data Associated to a Z-Node:
[zkshell: 0] get /zk_node
The Output will Show up: “my_data” as First entry.
Changing the Data Associated to a Z-Node:
[zkshell: 0] set /zk_node hello
Deleting a Z-Node:
[zkshell: 0] delete /zk_node
For More See Zookeeper Programmers Docs:Zookeeper Programmer’s Guide
Tags: apache zookeeper, Getting Started, gnu, gnu/linux, Hadoop, How-to, Install, Java, Linux Mint, linux mint java, linux mint linux, linux mint nosql, linux mint tutorial, Linux Tutorial, NoSQL, Quick Start, Tutorial, zookeeper, zookeeper linux, zookeeper linux mint, zookeeper quick-start