Fuse ESB 7.1 Fabric: multiple zookeeper ensemble containers running on the same host creates a port conflict
Issue
- ensemble container logs the following exception
ZKServerFactoryBean | ternal.BaseManagedServiceFactory 151 | 50 - org.fusesource.fabric.fabric-zookeeper - 7.1.0.fuse-047 | Error creating service for ManagedServiceFactory ZooKeeper Server Factory
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)[:1.7.0_13]
at sun.nio.ch.Net.bind(Unknown Source)[:1.7.0_13]
at sun.nio.ch.Net.bind(Unknown Source)[:1.7.0_13]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)[:1.7.0_13]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)[:1.7.0_13]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)[:1.7.0_13]
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:111)[49:org.fusesource.fabric.fabric-linkedin-zookeeper:7.1.0.fuse-047]
at org.fusesource.fabric.zookeeper.internal.ZKServerFactoryBean.doCreate(ZKServerFactoryBean.java:76)[50:org.fusesource.fabric.fabric-zookeeper:7.1.0.fuse-047]
at org.fusesource.fabric.zookeeper.internal.BaseManagedServiceFactory.internalUpdate(BaseManagedServiceFactory.java:135)[50:org.fusesource.fabric.fabric-zookeeper:7.1.0.fuse-047]
at org.fusesource.fabric.zookeeper.internal.BaseManagedServiceFactory.access$000(BaseManagedServiceFactory.java:36)[50:org.fusesource.fabric.fabric-zookeeper:7.1.0.fuse-047]
at org.fusesource.fabric.zookeeper.internal.BaseManagedServiceFactory$1.run(BaseManagedServiceFactory.java:78)[50:org.fusesource.fabric.fabric-zookeeper:7.1.0.fuse-047]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.7.0_13]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)[:1.7.0_13]
at java.util.concurrent.FutureTask.run(Unknown Source)[:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.7.0_13]
at java.lang.Thread.run(Unknown Source)[:1.7.0_13]
Environment
- Fuse ESB 7.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
