You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "marcus (JIRA)" <ji...@apache.org> on 2016/07/31 02:05:20 UTC
[jira] [Closed] (AMQ-6315) activemq replicated levelDB with
zookeeper can not visited?
[ https://issues.apache.org/jira/browse/AMQ-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
marcus closed AMQ-6315.
-----------------------
Resolution: Not A Problem
> activemq replicated levelDB with zookeeper can not visited?
> -----------------------------------------------------------
>
> Key: AMQ-6315
> URL: https://issues.apache.org/jira/browse/AMQ-6315
> Project: ActiveMQ
> Issue Type: Bug
> Components: activemq-leveldb-store
> Affects Versions: 5.13.3
> Environment: I have 3 zookeeper machines and 3 activemq machines.
> here is the configuration.
> jdk1.7.0_79 activeMq-5.13.3 zookeeper-3.4.6
> zookeeper:
> tickTime=2000
> initLimit=10
> syncLimit=5
> dataDir=/usr/local/web/zookeeper_data/data
> dataLogDir=/usr/local/web/zookeeper_data/log
> clientPort=2181
> server.1=192.168.2.29:2888:3888
> server.2=192.168.2.30:2888:3888
> server.3=192.168.2.31:2888:3888
> activemq:
> <persistenceAdapter>
> <replicatedLevelDB
> directory="${activemq.data}/levelDB"
> replicas="3"
> bind="tcp://0.0.0.0"
> zkAddress="192.168.2.30:2181,192.168.2.29:2181,192.168.2.31:2181"
> hostname="192.168.2.30"
> zkPath="/activemq/leveldb-stores"
> sync="local_disk"/>
> </persistenceAdapter>
> Reporter: marcus
>
> [root@localhost bin]# ./activemq console
> INFO: Loading '/usr/local/web/apache-activemq-5.13.3//bin/env'
> INFO: Using java '/usr/local/web/jdk1.7.0_79/bin/java'
> INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
> INFO: Creating pidfile /usr/local/web/apache-activemq-5.13.3//data/activemq.pid
> Java Runtime: Oracle Corporation 1.7.0_79 /usr/local/web/jdk1.7.0_79/jre
> Heap sizes: current=63360k free=61254k max=1013632k
> JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/usr/local/web/apache-activemq-5.13.3//conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/usr/local/web/apache-activemq-5.13.3//tmp -Dactivemq.classpath=/usr/local/web/apache-activemq-5.13.3//conf:/usr/local/web/apache-activemq-5.13.3//../lib/: -Dactivemq.home=/usr/local/web/apache-activemq-5.13.3/ -Dactivemq.base=/usr/local/web/apache-activemq-5.13.3/ -Dactivemq.conf=/usr/local/web/apache-activemq-5.13.3//conf -Dactivemq.data=/usr/local/web/apache-activemq-5.13.3//data
> Extensions classpath:
> [/usr/local/web/apache-activemq-5.13.3/lib,/usr/local/web/apache-activemq-5.13.3/lib/camel,/usr/local/web/apache-activemq-5.13.3/lib/optional,/usr/local/web/apache-activemq-5.13.3/lib/web,/usr/local/web/apache-activemq-5.13.3/lib/extra]
> ACTIVEMQ_HOME: /usr/local/web/apache-activemq-5.13.3
> ACTIVEMQ_BASE: /usr/local/web/apache-activemq-5.13.3
> ACTIVEMQ_CONF: /usr/local/web/apache-activemq-5.13.3/conf
> ACTIVEMQ_DATA: /usr/local/web/apache-activemq-5.13.3/data
> Loading message broker from: xbean:activemq.xml
> INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@56ad882e: startup date [Wed Jun 08 06:41:08 PDT 2016]; root of context hierarchy
> INFO | Using Persistence Adapter: Replicated LevelDB[/usr/local/web/apache-activemq-5.13.3/data/levelDB, 192.168.2.30:2181,192.168.2.29:2181,192.168.2.31:2181//activemq/leveldb-stores]
> INFO | Starting StateChangeDispatcher
> INFO | Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
> INFO | Client environment:host.name=localhost
> INFO | Client environment:java.version=1.7.0_79
> INFO | Client environment:java.vendor=Oracle Corporation
> INFO | Client environment:java.home=/usr/local/web/jdk1.7.0_79/jre
> INFO | Client environment:java.class.path=/usr/local/web/apache-activemq-5.13.3//bin/activemq.jar
> INFO | Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> INFO | Client environment:java.io.tmpdir=/usr/local/web/apache-activemq-5.13.3//tmp
> INFO | Client environment:java.compiler=<NA>
> INFO | Client environment:os.name=Linux
> INFO | Client environment:os.arch=amd64
> INFO | Client environment:os.version=2.6.32-573.el6.x86_64
> INFO | Client environment:user.name=root
> INFO | Client environment:user.home=/root
> INFO | Client environment:user.dir=/usr/local/web/apache-activemq-5.13.3/bin
> INFO | Initiating client connection, connectString=192.168.2.30:2181,192.168.2.29:2181,192.168.2.31:2181 sessionTimeout=2000 watcher=org.apache.activemq.leveldb.replicated.groups.ZKClient@1fef023c
> WARN | SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/usr/local/web/apache-activemq-5.13.3//conf/login.config'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
> INFO | Opening socket connection to server 192.168.2.31/192.168.2.31:2181
> WARN | unprocessed event state: AuthFailed
> INFO | Socket connection established to 192.168.2.31/192.168.2.31:2181, initiating session
> INFO | Session establishment complete on server 192.168.2.31/192.168.2.31:2181, sessionid = 0x355301a06280002, negotiated timeout = 4000
> INFO | Not enough cluster members connected to elect a master.
> INFO | Not enough cluster members connected to elect a master.
> INFO | Not enough cluster members have reported their update positions yet.
> INFO | Promoted to master
> WARN | listeners are taking too long to process the events
> WARN | listeners are taking too long to process the events
> INFO | Using the pure java LevelDB implementation.
> ERROR | Error in thread 'ActiveMQ BrokerService[activemq] Task-1'
> java.lang.IllegalArgumentException: port out of range:-1
> at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)[:1.7.0_79]
> at java.net.InetSocketAddress.<init>(InetSocketAddress.java:185)[:1.7.0_79]
> at org.fusesource.hawtdispatch.transport.TcpTransportServer.<init>(TcpTransportServer.java:52)[hawtdispatch-transport-1.22.jar:1.22]
> at org.apache.activemq.leveldb.replicated.MasterLevelDBStore.start_protocol_server(MasterLevelDBStore.scala:134)[activemq-leveldb-store-5.13.3.jar:5.13.3]
> at org.apache.activemq.leveldb.replicated.MasterLevelDBStore.doStart(MasterLevelDBStore.scala:111)[activemq-leveldb-store-5.13.3.jar:5.13.3]
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[activemq-client-5.13.3.jar:5.13.3]
> at org.apache.activemq.leveldb.replicated.ElectingLevelDBStore$$anonfun$start_master$1.apply$mcV$sp(ElectingLevelDBStore.scala:230)[activemq-leveldb-store-5.13.3.jar:5.13.3]
> at org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:330)[hawtdispatch-scala-2.11-1.22.jar:1.22]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
> at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)