You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Marc Ende <ma...@ymail.com> on 2013/07/15 09:21:27 UTC
ReplicatedLevelDb / Not enough cluster members connected to elect a new master.
Hi,
I've got 3 zookeeper instances and also 3 activemq instances. The zookeeper
instances are configured as a cluster and are working correctly.
Now I've tried to configure the replicatedLevelDB:
<persistenceAdapter>
<replicatedLevelDB
directory="activemq-data"
replicas="3"
bind="tcp://0.0.0.0:61619"
zkAddress="www01:2181,www03:2181,www04:2181"
zkPath="/activemq/leveldb-stores"
/>
</persistenceAdapter>
But always, when I try to bring up the cluster I find the following entry
(multiple = 2 entries per instance) in the logfile:
| INFO | Not enough cluster members connected to elect a new master. |
org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
Does anybody has an idea?
Thanks.
marc
Re: ReplicatedLevelDb / Not enough cluster members connected to elect
a new master.
Posted by Christian Posta <ch...@gmail.com>.
Yep good catch!
On Tuesday, July 16, 2013, Marc Ende wrote:
> Aaaarg... Okay I've found the point myself:
>
> Within the docs: *"All the broker nodes that are part of the same
> replication set
> should have matching brokerName XML attributes."*
>
> Now I've got it...
>
> Thanks for your help, Christian!
>
> Marc
>
> Am Dienstag, 16. Juli 2013, 07:04:36 schrieb Marc Ende:
> > I've updated to the latest one (apache-activemq-5.9-20130711.133644-74-
> > bin.tar.gz) but with no success.
> >
> > I've changed only three points in the vanilla activemq.xml:
> > a) I've commented out the inclusion of jetty at the bottom of the file.
> (I
> > don't need the web-app)
> > b) I've changed the brokerName to www01, www03 and www03 (each in the
> > related file)
> > c) I've pasted in (and replaced the default one) the
> > <persistenceAdapter>...</persistenceAdapter> part.
> >
> > I've turned on logging thats what happend after restarting the second
> node:
> >
> > 2013-07-16 06:58:36,585 | DEBUG | Got ping response for sessionid:
> > 0x33fe1f2d41f0004 after 9ms | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:37,919 | DEBUG | Got ping response for sessionid:
> > 0x33fe1f2d41f0004 after 8ms | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | Got notification
> > sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
> state:SyncConnected
> > type:NodeDeleted path:/activemq/leveldb-stores/00000000054 for sessionid
> > 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> > treeWatcher: type=NodeDeleted, state=SyncConnected |
> > org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> > 2013-07-16 06:58:39,171 | DEBUG | Got notification
> > sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> stop
> > tracking node | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker |
> main-
> > EventThread
> > 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
> state:SyncConnected
> > type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
> > 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,181 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 17,4 replyHeader:: 17,34359738434,-101
> request::
> > '/activemq/leveldb-stores/00000000054,T response:: |
> > org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,181 | DEBUG | [/activemq/leveldb-
> stores/00000000054]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] *no
> > such node* | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
> > EventThread
> > 2013-07-16 06:58:39,182 | INFO | Not enough cluster members connected
> to
> > elect a master. | org.apache.activemq.leveldb.replicated.MasterElector |
> > main- EventThread
> > 2013-07-16 06:58:39,183 | DEBUG | [/activemq/leveldb-stores]
> > [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> > treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
> > org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> > 2013-07-16 06:58:39,192 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 18,4 replyHeader:: 18,34359738434,0 request::
> > '/activemq/leveldb-stores,T response::
> >
> ,s{21474836483,21474836483,1373541435591,1373541435591,0,111,0,0,0,
> > 3,34359738434} | org.apache.zookeeper.ClientCnxn | main-
> > SendThread(109.73.50.78:2181)
> > 2013-07-16 06:58:39,220 | DEBUG | Reading reply
> > sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> > finished:false header:: 19,12 replyHeader:
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta
Re: ReplicatedLevelDb / Not enough cluster members connected to elect a new master.
Posted by Marc Ende <ma...@ymail.com>.
Aaaarg... Okay I've found the point myself:
Within the docs: *"All the broker nodes that are part of the same replication set
should have matching brokerName XML attributes."*
Now I've got it...
Thanks for your help, Christian!
Marc
Am Dienstag, 16. Juli 2013, 07:04:36 schrieb Marc Ende:
> I've updated to the latest one (apache-activemq-5.9-20130711.133644-74-
> bin.tar.gz) but with no success.
>
> I've changed only three points in the vanilla activemq.xml:
> a) I've commented out the inclusion of jetty at the bottom of the file. (I
> don't need the web-app)
> b) I've changed the brokerName to www01, www03 and www03 (each in the
> related file)
> c) I've pasted in (and replaced the default one) the
> <persistenceAdapter>...</persistenceAdapter> part.
>
> I've turned on logging thats what happend after restarting the second node:
>
> 2013-07-16 06:58:36,585 | DEBUG | Got ping response for sessionid:
> 0x33fe1f2d41f0004 after 9ms | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:37,919 | DEBUG | Got ping response for sessionid:
> 0x33fe1f2d41f0004 after 8ms | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,171 | DEBUG | Got notification
> sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
state:SyncConnected
> type:NodeDeleted path:/activemq/leveldb-stores/00000000054 for sessionid
> 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
stores/00000000054]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> treeWatcher: type=NodeDeleted, state=SyncConnected |
> org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> 2013-07-16 06:58:39,171 | DEBUG | Got notification
> sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-
stores/00000000054]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
stop
> tracking node | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
> EventThread
> 2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent
state:SyncConnected
> type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
> 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,181 | DEBUG | Reading reply
> sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> finished:false header:: 17,4 replyHeader:: 17,34359738434,-101 request::
> '/activemq/leveldb-stores/00000000054,T response:: |
> org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,181 | DEBUG | [/activemq/leveldb-
stores/00000000054]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] *no
> such node* | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
> EventThread
> 2013-07-16 06:58:39,182 | INFO | Not enough cluster members connected
to
> elect a master. | org.apache.activemq.leveldb.replicated.MasterElector |
> main- EventThread
> 2013-07-16 06:58:39,183 | DEBUG | [/activemq/leveldb-stores]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
> org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> 2013-07-16 06:58:39,192 | DEBUG | Reading reply
> sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> finished:false header:: 18,4 replyHeader:: 18,34359738434,0 request::
> '/activemq/leveldb-stores,T response::
>
,s{21474836483,21474836483,1373541435591,1373541435591,0,111,0,0,0,
> 3,34359738434} | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,220 | DEBUG | Reading reply
> sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> finished:false header:: 19,12 replyHeader:: 19,34359738434,0 request::
> '/activemq/leveldb-stores,T response::
>
v{'00000000055,'00000000056,'00000000044},s{21474836483,214748364
> 83,1373541435591,1373541435591,0,111,0,0,0,3,34359738434} |
> org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:39,220 | DEBUG | [/activemq/leveldb-stores]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
start
> tracking node zkTxId=34359738434 |
> org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> 2013-07-16 06:58:40,007 | DEBUG | Got notification
> sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:40,008 | DEBUG | Got WatchedEvent
state:SyncConnected
> type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
> 0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:40,008 | DEBUG | [/activemq/leveldb-stores]
> [ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
> treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
> org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
> 2013-07-16 06:58:40,019 | DEBUG | Reading reply
> sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> finished:false header:: 20,4 replyHeader:: 20,34359738436,0 request::
> '/activemq/leveldb-stores,T response::
>
,s{21474836483,21474836483,1373541435591,1373541435591,0,112,0,0,0,
> 4,34359738436} | org.apache.zookeeper.ClientCnxn | main-
> SendThread(109.73.50.78:2181)
> 2013-07-16 06:58:40,030 | DEBUG | Reading reply
> sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
> finished:false header:: 21,12 replyHeader:: 21,34359738436,0 request::
> '/activemq/leveldb-stores,T response::
>
v{'00000000055,'00000000056,'00000000057,'00000000044},s{214748364
>
83,21474836483,1373541435591,1373541435591,0,112,0,0,0,4,343597384
> 36} | org.apache.zookeeper.ClientCnxn | main-
Re: ReplicatedLevelDb / Not enough cluster members connected to elect a new master.
Posted by Marc Ende <ma...@ymail.com>.
I've updated to the latest one (apache-activemq-5.9-20130711.133644-74-
bin.tar.gz) but with no success.
I've changed only three points in the vanilla activemq.xml:
a) I've commented out the inclusion of jetty at the bottom of the file. (I don't
need the web-app)
b) I've changed the brokerName to www01, www03 and www03 (each in the
related file)
c) I've pasted in (and replaced the default one) the
<persistenceAdapter>...</persistenceAdapter> part.
I've turned on logging thats what happend after restarting the second node:
2013-07-16 06:58:36,585 | DEBUG | Got ping response for sessionid:
0x33fe1f2d41f0004 after 9ms | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:37,919 | DEBUG | Got ping response for sessionid:
0x33fe1f2d41f0004 after 8ms | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,171 | DEBUG | Got notification
sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent state:SyncConnected
type:NodeDeleted path:/activemq/leveldb-stores/00000000054 for sessionid
0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-stores/00000000054]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
treeWatcher: type=NodeDeleted, state=SyncConnected |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:39,171 | DEBUG | Got notification
sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,171 | DEBUG | [/activemq/leveldb-stores/00000000054]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] stop
tracking node | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
EventThread
2013-07-16 06:58:39,171 | DEBUG | Got WatchedEvent state:SyncConnected
type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,181 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 17,4 replyHeader:: 17,34359738434,-101 request::
'/activemq/leveldb-stores/00000000054,T response:: |
org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,181 | DEBUG | [/activemq/leveldb-stores/00000000054]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] *no
such node* | org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-
EventThread
2013-07-16 06:58:39,182 | INFO | Not enough cluster members connected to
elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-
EventThread
2013-07-16 06:58:39,183 | DEBUG | [/activemq/leveldb-stores]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:39,192 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 18,4 replyHeader:: 18,34359738434,0 request::
'/activemq/leveldb-stores,T response::
,s{21474836483,21474836483,1373541435591,1373541435591,0,111,0,0,0,
3,34359738434} | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,220 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 19,12 replyHeader:: 19,34359738434,0 request::
'/activemq/leveldb-stores,T response::
v{'00000000055,'00000000056,'00000000044},s{21474836483,214748364
83,1373541435591,1373541435591,0,111,0,0,0,3,34359738434} |
org.apache.zookeeper.ClientCnxn | main-SendThread(109.73.50.78:2181)
2013-07-16 06:58:39,220 | DEBUG | [/activemq/leveldb-stores]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] start
tracking node zkTxId=34359738434 |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:40,007 | DEBUG | Got notification
sessionid:0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:40,008 | DEBUG | Got WatchedEvent state:SyncConnected
type:NodeChildrenChanged path:/activemq/leveldb-stores for sessionid
0x33fe1f2d41f0004 | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:40,008 | DEBUG | [/activemq/leveldb-stores]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]]
treeWatcher: type=NodeChildrenChanged, state=SyncConnected |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:40,019 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 20,4 replyHeader:: 20,34359738436,0 request::
'/activemq/leveldb-stores,T response::
,s{21474836483,21474836483,1373541435591,1373541435591,0,112,0,0,0,
4,34359738436} | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:40,030 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 21,12 replyHeader:: 21,34359738436,0 request::
'/activemq/leveldb-stores,T response::
v{'00000000055,'00000000056,'00000000057,'00000000044},s{214748364
83,21474836483,1373541435591,1373541435591,0,112,0,0,0,4,343597384
36} | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:40,041 | DEBUG | Reading reply
sessionid:0x33fe1f2d41f0004, packet:: clientPath:null serverPath:null
finished:false header:: 22,4 replyHeader:: 22,34359738436,0 request::
'/activemq/leveldb-stores/00000000057,T response::
#7b226964223a227777773033222c2261646472657373223a6e756c6c2c22
706f736974696f6e223a2d312c22656c6563746564223a6e756c6c7d,s{3435
9738436,34359738436,1373950722837,1373950722837,0,0,0,23415413870
3691781,58,0,34359738436} | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
2013-07-16 06:58:40,041 | DEBUG | [/activemq/leveldb-stores/00000000057]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] start
tracking leaf node zkTxId=34359738436 |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:40,041 | DEBUG | [/activemq/leveldb-stores]
[ZooKeeperTreeTracker@40b20d52] [Thread[main-EventThread,5,main]] start
tracking node zkTxId=34359738436 |
org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker | main-EventThread
2013-07-16 06:58:40,042 | INFO | Not enough cluster members connected to
elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-
EventThread
2013-07-16 06:58:41,374 | DEBUG | Got ping response for sessionid:
0x33fe1f2d41f0004 after 8ms | org.apache.zookeeper.ClientCnxn | main-
SendThread(109.73.50.78:2181)
And thats what happening after I've got restarted the third one.
Re: ReplicatedLevelDb / Not enough cluster members connected to elect
a new master.
Posted by Christian Posta <ch...@gmail.com>.
I just tried on the latest snapshot and cannot reproduce. Maybe you can try
the latest?
https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.9-SNAPSHOT/
On Mon, Jul 15, 2013 at 12:48 PM, Marc Ende <me...@e-beyond.de> wrote:
> Am Montag, 15. Juli 2013, 09:49:12 schrieb Christian Posta:
> > Are you trying with the latest snapshots?
>
> Yes, I'm currently running: apache-activemq-5.9-20130609.215120-72
> At the time (Jul 8th) of installing activemq it was the latest one.
>
> > Also, when you have all 3 brokers up, can you log into zookeeper and list
> > what nodes are available under /activemq/leveldb-stores ?
>
> Yep, there are:
> [00000000046, 00000000047, 00000000044]
>
> >
> > On Mon, Jul 15, 2013 at 3:21 AM, Marc Ende <ma...@ymail.com> wrote:
> > > Hi,
> > >
> > > I've got 3 zookeeper instances and also 3 activemq instances. The
> > > zookeeper
> > > instances are configured as a cluster and are working correctly.
> > >
> > > Now I've tried to configure the replicatedLevelDB:
> > > <persistenceAdapter>
> > >
> > > <replicatedLevelDB
> > >
> > > directory="activemq-data"
> > > replicas="3"
> > > bind="tcp://0.0.0.0:61619"
> > > zkAddress="www01:2181,www03:2181,www04:2181"
> > > zkPath="/activemq/leveldb-stores"
> > > />
> > >
> > > </persistenceAdapter>
> > >
> > > But always, when I try to bring up the cluster I find the following
> entry
> > >
> > > (multiple = 2 entries per instance) in the logfile:
> > > | INFO | Not enough cluster members connected to elect a new master. |
> > >
> > > org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
> > >
> > > Does anybody has an idea?
> > >
> > > Thanks.
> > >
> > > marc
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta
Re: ReplicatedLevelDb / Not enough cluster members connected to elect a new master.
Posted by Marc Ende <me...@e-beyond.de>.
Am Montag, 15. Juli 2013, 09:49:12 schrieb Christian Posta:
> Are you trying with the latest snapshots?
Yes, I'm currently running: apache-activemq-5.9-20130609.215120-72
At the time (Jul 8th) of installing activemq it was the latest one.
> Also, when you have all 3 brokers up, can you log into zookeeper and list
> what nodes are available under /activemq/leveldb-stores ?
Yep, there are:
[00000000046, 00000000047, 00000000044]
>
> On Mon, Jul 15, 2013 at 3:21 AM, Marc Ende <ma...@ymail.com> wrote:
> > Hi,
> >
> > I've got 3 zookeeper instances and also 3 activemq instances. The
> > zookeeper
> > instances are configured as a cluster and are working correctly.
> >
> > Now I've tried to configure the replicatedLevelDB:
> > <persistenceAdapter>
> >
> > <replicatedLevelDB
> >
> > directory="activemq-data"
> > replicas="3"
> > bind="tcp://0.0.0.0:61619"
> > zkAddress="www01:2181,www03:2181,www04:2181"
> > zkPath="/activemq/leveldb-stores"
> > />
> >
> > </persistenceAdapter>
> >
> > But always, when I try to bring up the cluster I find the following entry
> >
> > (multiple = 2 entries per instance) in the logfile:
> > | INFO | Not enough cluster members connected to elect a new master. |
> >
> > org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
> >
> > Does anybody has an idea?
> >
> > Thanks.
> >
> > marc
Re: ReplicatedLevelDb / Not enough cluster members connected to elect
a new master.
Posted by Christian Posta <ch...@gmail.com>.
Are you trying with the latest snapshots?
Also, when you have all 3 brokers up, can you log into zookeeper and list
what nodes are available under /activemq/leveldb-stores ?
On Mon, Jul 15, 2013 at 3:21 AM, Marc Ende <ma...@ymail.com> wrote:
> Hi,
>
> I've got 3 zookeeper instances and also 3 activemq instances. The zookeeper
> instances are configured as a cluster and are working correctly.
> Now I've tried to configure the replicatedLevelDB:
>
> <persistenceAdapter>
> <replicatedLevelDB
> directory="activemq-data"
> replicas="3"
> bind="tcp://0.0.0.0:61619"
> zkAddress="www01:2181,www03:2181,www04:2181"
> zkPath="/activemq/leveldb-stores"
> />
> </persistenceAdapter>
>
> But always, when I try to bring up the cluster I find the following entry
> (multiple = 2 entries per instance) in the logfile:
>
> | INFO | Not enough cluster members connected to elect a new master. |
> org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
>
> Does anybody has an idea?
>
> Thanks.
>
> marc
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta