Thank you again for the reply.
1. Do I have to do #3 ?
I already have my bundle pre packaged and running in FuseESB.
2. Do I have to have
yet.another.pid.cfg in etc folder? without it I don't see my PID (config:list |grep pid)
3. what container should I use?
FuseESB:karaf@root> fabric:profile-create --parents default myprofile
FuseESB:karaf@root> fabric:container-list
[id] [version] [alive] [profiles] [provision status]
root* 1.0 true fabric, fabric-ensemble-0000-1
4. how to configure ZK to run on the same and only one FuseESB - no cluster yet
FuseESB:karaf@root> fabric:container-change-profile root myprofile
FuseESB:karaf@root> fabric:container-list
Error executing command: java.lang.IllegalStateException: Error waiting for ZooKeeper connection
FuseESB:karaf@root>
and I got those in log:
12:21:08,970 | WARN | 0.0/
0.0.0.0:2181 | NIOServerCnxnFactory | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | Ignoring unexpected runtime
exception
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)[:1.6.0_33]
at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)[:1.6.0_33]
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
12:21:08,971 | INFO | 0.0/
0.0.0.0:2181 | NIOServerCnxnFactory | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | NIOServerCnxn factory exited
run method
12:21:08,971 | INFO | use-061-thread-3 | ZooKeeperServer | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | shutting down
12:21:08,971 | INFO | use-061-thread-3 | SessionTrackerImpl | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | Shutting down
12:21:08,971 | INFO | use-061-thread-3 | PrepRequestProcessor | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | Shutting down
12:21:08,971 | INFO | use-061-thread-3 | SyncRequestProcessor | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | Shutting down
12:21:08,971 | INFO | SyncThread:0 | SyncRequestProcessor | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | SyncRequestProcessor exited!
12:21:08,972 | INFO | use-061-thread-3 | FinalRequestProcessor | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | shutdown of request processo
r complete
12:21:08,972 | INFO | sid:0 cport:-1): | PrepRequestProcessor | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | PrepRequestProcessor exited
loop!
12:21:08,982 | INFO | NAPSHOT-thread-6 | ManagementStrategyFactory | 138 - org.apache.camel.camel-core - 2.9.0.fuse-7-061 | JMX enabled.
12:21:08,984 | INFO | NAPSHOT-thread-6 | BlueprintCamelContext | 138 - org.apache.camel.camel-core - 2.9.0.fuse-7-061 | Apache Camel 2.9.0.fuse-7-061 (CamelContext:
blueprintContext) is starting
12:21:08,984 | INFO | NAPSHOT-thread-6 | faultManagementLifecycleStrategy | 138 - org.apache.camel.camel-core - 2.9.0.fuse-7-061 | StatisticsLevel at All so enabling load perfo
rmance statistics
12:21:09,071 | WARN | use-061-thread-3 | KarafContainerRegistration | 44 - org.fusesource.fabric.fabric-zookeeper - 7.0.0.fuse-061 | Exception while jmx domain synchroniz
ation from event: javax.management.MBeanServerNotification[source=JMImplementation:type=MBeanServerDelegate][type=JMX.mbean.unregistered][message=]. This exception will be ignor
ed.
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /fabric/registry/containers/domains/root/org.apache.ZooKeeperService
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:868)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.linkedin.zookeeper.client.ZooKeeperImpl.delete(ZooKeeperImpl.java:88)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.linkedin.zookeeper.client.AbstractZooKeeper.delete(AbstractZooKeeper.java:110)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.linkedin.zookeeper.client.AbstractZKClient.delete(AbstractZKClient.java:256)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.fusesource.fabric.zookeeper.internal.KarafContainerRegistration.handleNotification(KarafContainerRegistration.java:348)[44:org.fusesource.fabric.fabric-zookeeper:
7.0.0.fuse-061]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)[:1.6.0_33]
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)[:1.6.0_33]
at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)[:1.6.0_33]
at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)[:1.6.0_33]
...
12:21:09,071 | WARN | read-EventThread | ZooKeeperConfigAdminBridge | 199 - org.fusesource.fabric.fabric-configadmin - 7.0.0.fuse-061 | Exception when tracking configurat
ions. This exception will be ignored.
java.lang.RuntimeException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /fabric/registry/containers/config/root/ip
at org.fusesource.fabric.configadmin.ZooKeeperConfigAdminBridge$1.getValue(ZooKeeperConfigAdminBridge.java:172)[199:org.fusesource.fabric.fabric-configadmin:7.0.0.fuse-0
61]
at org.fusesource.fabric.zookeeper.utils.InterpolationHelper.substVars(InterpolationHelper.java:178)[44:org.fusesource.fabric.fabric-zookeeper:7.0.0.fuse-061]
at org.fusesource.fabric.zookeeper.utils.InterpolationHelper.performSubstitution(InterpolationHelper.java:88)[44:org.fusesource.fabric.fabric-zookeeper:7.0.0.fuse-061]
at org.fusesource.fabric.configadmin.ZooKeeperConfigAdminBridge.load(ZooKeeperConfigAdminBridge.java:166)[199:org.fusesource.fabric.fabric-configadmin:7.0.0.fuse-061]
at org.fusesource.fabric.configadmin.ZooKeeperConfigAdminBridge.onEvents(ZooKeeperConfigAdminBridge.java:274)[199:org.fusesource.fabric.fabric-configadmin:7.0.0.fuse-061
]
at org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker.raiseEvents(ZooKeeperTreeTracker.java:402)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker.access$800(ZooKeeperTreeTracker.java:50)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.linkedin.zookeeper.tracker.ZooKeeperTreeTracker$TreeWatcher.process(ZooKeeperTreeTracker.java:114)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-0
61]
....
12:21:09,559 | WARN |
yyy.xxx.com:2181) | ClientCnxn | 47 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.0.fuse-061 | Session 0x138ba6aaee20000 fo
r server null, unexpected error, closing socket connection and attempting reconnect
java.net.SocketException: Address family not supported by protocol family: connect
at sun.nio.ch.Net.connect(Native Method)[:1.6.0_33]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:532)[:1.6.0_33]
at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:203)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:213)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:946)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:973)[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
5. when I applied myprofile to container I got my PID ;-) - both records for service.pid and fabric.zookeeper.pid
Now I have to figure out how to configure ZK.
Thanks.