You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by "Wyngaard, Jane R (3980-Affiliate)" <Ja...@jpl.nasa.gov> on 2015/05/06 00:50:52 UTC
Zookeeper not starting but not reporting any problem either
Hi,
I’m new to zookeeper but am at a loss after trying loads of things:
- On running zkServer.sh start I get a report that it has started,
- But on checking the status I’m told there’s a connection error.
- And on stopping I’m told it wasn’t even running
Here’s the exact output:
---------------
jwyngaard@Head:~$ zkServer.sh start
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
jwyngaard@Head:~$ zkServer.sh status
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
jwyngaard@Head:~$ zkServer.sh stop
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Stopping zookeeper ... /usr/local/zookeeper/zookeeper-3.4.6/bin/zkServer.sh: line 143: kill: (2656) - No such process
STOPPED
------------------
- My config file is simply the sample with 2 servers added. I’ve created and pointed to a data directory and given the machines their own myids.
- This is being run on 2 VirtualBox Ubuntu VMs, both with NAT and host-only static IP (which Zookeeper targets) network connections
- Identical problem on both VMs
The really odd thing is there are no log files reporting what the issue is. In the target data directory I get a PID file and a empty directory called “version-2” but that’s it.
I’ve played around with the VM network settings extensively, and tried forcing ports open, but I’m not really sure what the issue is, just assuming its a network problem. Both machines are ssh accessible from the host, can access the outside world and each other, and have no firewalls.
I’ve seen the couple of reports online of a similar issue but none of the solutions/situations offered match this exactly.
Anyone have any ideas?
Much thanks!
Jane
Re: Zookeeper not starting but not reporting any problem either
Posted by jlindwall <jl...@yahoo.com>.
Side note: I figured out my problem with "zkServer.sh status": I did not have
JAVA_HOME set to a jdk, so the command quietly fails and assumes that the
server is unavailable.
--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Zookeeper-not-starting-but-not-reporting-any-problem-either-tp7581090p7581092.html
Sent from the zookeeper-user mailing list archive at Nabble.com.
Re: Zookeeper not starting but not reporting any problem either
Posted by jlindwall <jl...@yahoo.com>.
I apologize for my carelessness in reading your original summary: You are
running each node on a separate box, so the ports and data dirs can be the
same (since the data dirs are on different disks and not shared over nfs I
assume)
I am forced to run on a single box so my head was in that mode.
--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Zookeeper-not-starting-but-not-reporting-any-problem-either-tp7581090p7581095.html
Sent from the zookeeper-user mailing list archive at Nabble.com.
Re: Zookeeper not starting but not reporting any problem either
Posted by "Wyngaard, Jane R (3980-Affiliate)" <Ja...@jpl.nasa.gov>.
Hi John,
Thanks for the replies!
Interesting - I didn¹t have JAVA_HOME set either, but alas I still get the
same status response.
I think I have all of that correct -
My config files all have:
-----------
server.1=192.168.56.130:2888:3888
server.2=192.168.56.131:2888:3888
server.3=192.168.56.132:2888:3888
‹‹‹‹‹
- My reading said they should all know about each otherŠ?
- Data directories paths are the same but each is on it¹s own machine - ?
- I hadn¹t actually remembered to change the port numbers - but I get the
same issue commenting out the 2nd and 3rd servers and only standing up the
first anyways soŠ?
- I¹m presuming the 2888:3888 is a range and so doesn¹t need to be unique
- ?
Any mistakes in any of that?
Thanks again,
Jane
On 05/05/2015 16:06, "jlindwall" <jl...@yahoo.com> wrote:
>I was not even aware of "zkServer status"; weirdly it gives me that same
>message that you get even though I know my node is working properly! :(
>
>You can't use the same config file for all of your nodes; each needs a
>unique clientPort and dataDir. Is you ensemble supposed to be 3 nodes?
>Then you need three conf files, each largely the same except the unique
>bits
>I mention above.
>
>If you are taking your first baby step, get a single node (standalone)
>zookeeper running and then move on to an ensemble.
>
>Good luck!
>John
>
>
>
>--
>View this message in context:
>http://zookeeper-user.578899.n2.nabble.com/Zookeeper-not-starting-but-not-
>reporting-any-problem-either-tp7581090p7581091.html
>Sent from the zookeeper-user mailing list archive at Nabble.com.
Re: Zookeeper not starting but not reporting any problem either
Posted by jlindwall <jl...@yahoo.com>.
I was not even aware of "zkServer status"; weirdly it gives me that same
message that you get even though I know my node is working properly! :(
You can't use the same config file for all of your nodes; each needs a
unique clientPort and dataDir. Is you ensemble supposed to be 3 nodes?
Then you need three conf files, each largely the same except the unique bits
I mention above.
If you are taking your first baby step, get a single node (standalone)
zookeeper running and then move on to an ensemble.
Good luck!
John
--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Zookeeper-not-starting-but-not-reporting-any-problem-either-tp7581090p7581091.html
Sent from the zookeeper-user mailing list archive at Nabble.com.