How to Install
-
3. Installing Zookeeper
Now to Install Zookeeper on Debian
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 Installing JDK
How to Install Required Oracle Java JDK on Debian
To check your current JDK version:
javac --version && java -XshowSettings:properties -version 2>&1 | grep 'java.vendor'
If it’s the official Oracle JDK, the output will include:
java.vendor = Oracle Corporation
. -
5. 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