How to Install Zookeeper on Ubuntu 18.04

April 15, 2018 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading Zookeeper

    Download Apache Zookeeper for GNU/Linux

    Apache Zookeeper tar.gz
  2. 3. Extracting Zookeeper

    Double-Click on Archive Extract into /tmp

    Install Zookeeper on Ubuntu 18.04 Bionic - Archive Extraction

    Or from Command Line:

    tar xvzf zookeeper*.tar.gz -C /tmp/
  3. 4. Installing Zookeeper

    Now to Install Zookeeper on Ubuntu
    First, set Ownership with:

    sudo su -c "chown -R root:root /tmp/zookeeper*"

    And then Switch the contents into the Target:

    sudo su -c "mv /tmp/zookeeper* /opt/zookeeper"

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.

  4. 5. Installing JDK

    How to Install Required Oracle Java JDK on Ubuntu

    Install Oracle JDK for Ubuntu
  5. 6. Setting Up Java

    Setting Up the Java Heap Memory Size
    A Good Value is about 75% of RAM.
    So let’s go Editing the Bash Config File:

    nano $HOME/.bashrc

    Append:

    export JVMFLAGS="-Xmx1500m"

    Set Size with ‘m’ postfix for Megabites and ‘g’ for Gigabites.
    Ctrl+x to Save & Exit from nano Editor :)

    bash

    To Load the New SetUp!

Contents


QuickChic Theme • Powered by WordPress