To followup to my saga, the dockerized zookeeper is working with a three
node ensemble. I can see Leader Election in logs of one images. And also
Following messages in the other. The node do sleep for 30 seconds so the
bridge network can be established which might be incorrect but it's working
so good enough for now.


On Wed, Jun 11, 2014 at 1:53 PM, David Medinets <[email protected]>
wrote:

> Sadly, I am seeing the following message in the image logs. I had thought
> once the bridge was created on the host, then the images would see each
> other.
>
> 2014-06-11 17:42:04,835 [myid:1] - WARN
>  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@382] - Cannot
> open channel to 2 at election address /10.0.10.2:3888
> java.net.NoRouteToHostException: No route to host
>
>
> On Wed, Jun 11, 2014 at 12:56 PM, David Medinets <[email protected]
> > wrote:
>
>> I've updated my github project so that the zoo.cfg has the IP's from the
>> br0 bridge network. And have created the myid files inside the images when
>> they get started.
>>
>>
>> On Wed, Jun 11, 2014 at 9:06 AM, Rakesh R <[email protected]> wrote:
>>
>>> Yes before starting the server. When the server starts up, it looks for
>>> the file myid in the data directory.
>>>
>>> -Rakesh
>>>
>>> -----Original Message-----
>>> From: David Medinets [mailto:[email protected]]
>>> Sent: 11 June 2014 18:14
>>> To: [email protected]
>>> Subject: Re: Zookeeper on Docker
>>>
>>> That file needs to be in place before zookeeper spins up?
>>>
>>>
>>> On Wed, Jun 11, 2014 at 8:38 AM, Rakesh R <[email protected]> wrote:
>>>
>>> > Hi David,
>>> >
>>> > You can place 'myid' file in server's data directory, as specified by
>>> > the configuration file parameter dataDir.
>>> >
>>> > For example: dataDir=/home/zookeeper-data/
>>> >
>>> > Keep like /home/zookeeper-data/myid
>>> >
>>> > Regards,
>>> > Rakesh
>>> >
>>> > -----Original Message-----
>>> > From: David Medinets [mailto:[email protected]]
>>> > Sent: 11 June 2014 17:56
>>> > To: [email protected]
>>> > Subject: Fwd: Zookeeper on Docker
>>> >
>>> > Hi. I'm working to containerize Zookeeper with Docker. I think I'm
>>> > nearly there. But still need to add myid files to each node in the
>>> > ensemble. If anyone is inclined, I'll appreciate any help or advice.
>>> > My project is at https://github.com/medined/docker-zookeeper. It
>>> > starts a three-node zookeeper ensemble and a web-based application to
>>> > view the contents of the ensemble.
>>> >
>>>
>>
>>
>

Reply via email to