activemq.xml配置如下:
<persistenceAdapter>
<replicatedLevelDB
directory="${activemq.data}/leveldb"
replicas="3"
hostname="192.168.0.99"
zkAddress="192.168.0.99:2181,192.168.0.100:2181,192.168.0.98:2181"
zkPath="/activemq/leveldb-stores"
/>
</persistenceAdapter>
启动activemq失败日志
2014-06-28 17:16:57,996 | INFO | Opening socket connection to server 192.168.0.100/192.168.0.100:2181 | org.apache.zookeeper.ClientCnxn | main-SendThread(192.168.0.100:2181)
2014-06-28 17:16:57,997 | WARN | unprocessed event state: AuthFailed | org.apache.activemq.leveldb.replicated.groups.ZKClient | main-EventThread
2014-06-28 17:16:58,005 | INFO | Socket connection established to 192.168.0.100/192.168.0.100:2181, initiating session | org.apache.zookeeper.ClientCnxn | main-SendThread(192.168.0.100:2181)
2014-06-28 17:16:58,019 | INFO | Session establishment complete on server 192.168.0.100/192.168.0.100:2181, sessionid = 0x246e04ebbdc000e, negotiated timeout = 4000 | org.apache.zookeeper.ClientCnxn | main-SendThread(192.168.0.100:2181)
2014-06-28 17:16:58,282 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:16:58,285 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:18:36,021 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:18:41,999 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:18:42,009 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:23:28,007 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:23:30,894 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2014-06-28 17:23:30,901 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread