Apache Zookeeper Quick-Start on Debian GNU+Linux Easy Guide

June 6, 2015 | By the+gnu+linux+evangelist.

Quick-Start Zookeeper for Debian

The Tutorial shows you Step-by-step How to Getting-Started with Apache Zookeeper on Debian 6-Squeeze/7-Wheezy/8-Jessie/9-Stretch/10-Buster/11-Bullseye GNU/Linux Desktop/Server.

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.

Step-by-step – Hue Ubuntu 20.04 Installation Guide
  1. How to Install Zookeeper on Debian Linux

    Setting Up Zookeeper for Debian
  2. Open a Shell Session
    (Press “Enter” to Execute Commands)

    Open Terminal
  3. Making the Zookeeper Data Directory

    sudo mkdir /var/lib/zookeeper

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

  4. Creating the Zookeeper Configuration File

    cd /opt/zookeeper
    su -c "nano conf/zoo.cfg"

    Append for Example:


    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 :)

  5. Starting Up the Zookeeper Server

    cd /opt/zookeeper
    sudo bin/zkServer.sh start
  6. Connecting by Java Client to Zookeeper Server

    bin/zkCli.sh -server

    The Zookeeper Shell Prompt:

    [zkshell: 0]
  7. 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
  8. For More See Zookeeper Programmers Docs

    Zookeeper Programmer’s Guide

QuickChic Theme • Powered by WordPress