Reputation: 1518
I downloaded zookeeper-3.4.6.tar.gz and while executing zkServer.sh start , I am getting below error.I did google but couldn't find a solution, Please let me kno if you see similar issues.
Upvotes: 2
Views: 1575
Reputation: 1682
./zkServer.sh start
This should work.
Edit /etc/environment
, and paste the following:
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME/bin"
modify the JAVA_HOME
as per your local Java version.
Upvotes: 0
Reputation: 402
I'm using zookeeper version 3.4.9 on ubuntu 14.04 and installed openjdk 7. I have added below lines to ~/.bashrc
export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
export ZOOKEEPER_HOME ="/path/to/zookeeper"
PATH=$PATH:$JAVA_HOME/bin:$ZOOKEEPER_HOME/bin
.
First I ran sh /path-to-zookeeper/bin/zkServer.sh start
but didn't not work I got the same error.
I ran it with sudo /bin/bash /path-to-zookeeper/bin/zkServer.sh start
it worked.
Upvotes: 2
Reputation: 1518
Finally I am able to see storm UI and its running. Below changes I did in the .bashrc file. Please make sure that You add bin path in the PATH VARIABLE.
I did add the below variables in the .bashrc file.
export JAVA_HOME =JDK Path export ZOOKEPER_HOME =Zookeper install path Then add them in the variable path. PATH= $PATH:$JAVA_HOME/bin:$ZOOKEPER_HOME/bin
Thanks Sanjeeb
Upvotes: 2