Deploying bundle from fabric to joined Enterprise ESB

130 views
Skip to first unread message

andys

unread,
Jun 11, 2012, 9:46:19 AM6/11/12
to fusefabric
Hello.
My goal is still deploying bundle from
fabric to joined esb.

I have
Win7-64-pro, jdk 1.7-64,
fuse-fabric-7.0-20120608.040820-30.zip,
fuse-esb-full-7.0.0.fuse-061.zip

See pls trace of last trying of connect
fuse-fabric and fuse-esb.

1. start of fuse-esb
2. fuse-esb> features:install fabric-agent
3. start of fuse-fabric
4. fuse-fabric> fabric:create --clean
5. fuse-esb> fabric:join wd3:2181
6. fuse-esb> log:display

2012-06-11 16:20:33,956 | WARN | ispatcher thread |
ZooKeeperConfigAdminBridge | 215 - org.fusesource.fabric.fabric-
configadmin
- 7.0.0.fuse-061 | Exception when tracking configurations. This
exception will be ignored.
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode
= NoNode for /fabric/configs/default-version
at
org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at
org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1131)
at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1160)
at
org.linkedin.zookeeper.client.ZooKeeperImpl.getData(ZooKeeperImpl.java:
178)
at
org.linkedin.zookeeper.client.AbstractZooKeeper.getData(AbstractZooKeeper.java:
200)
at
org.linkedin.zookeeper.client.AbstractZKClient.getStringData(AbstractZKClient.java:
136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[:1.7.0_03]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)[:1.7.0_03]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)[:1.7.0_03]
at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_03]
at org.apache.aries.proxy.impl.ProxyHandler
$1.invoke(ProxyHandler.java:50)[8:org.apache.aries.proxy:0.3.0]
at
org.apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java:
31)[8:org.apache.aries.proxy:0.3.0]
at
org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78)
[8:org.apache.aries.proxy:0.3.0]
at $Proxy44.getStringData(Unknown Source)
[47:org.fusesource.fabric.fabric-linkedin-zookeeper:7.0.0.fuse-061]
at
org.fusesource.fabric.zookeeper.utils.ZooKeeperUtils.get(ZooKeeperUtils.java:
106)[44:org.fusesource.fabric.fabric-zookeeper:
7.0.0.fuse-061]
at
org.fusesource.fabric.zookeeper.ZkPath.createContainerPaths(ZkPath.java:
173)[44:org.fusesource.fabric.fabric-zookeeper:7.0.0
.fuse-061]
at
org.fusesource.fabric.configadmin.ZooKeeperConfigAdminBridge.onConnected(ZooKeeperConfigAdminBridge.java:
91)[215:org.fusesou
rce.fabric.fabric-configadmin:7.0.0.fuse-061]
at org.fusesource.fabric.zookeeper.internal.OsgiZkClient
$StateChangeDispatcher.run(OsgiZkClient.java:128)
[44:org.fusesource.fab
ric.fabric-zookeeper:7.0.0.fuse-061]


7. (for both consoles)>container-list
[id] [version] [alive] [profiles] [provision status]
EnterpriseFuseESB 1.0 true default
root* 1.0 true fabric,fabric-ensemble-0000-1
8. fuse-fabric> fabric:profile-create --parents default bridge-camel
9. fuse-fabric> fabric:profile-edit --bundles wrap:file:/D:/bridge-
camel-sa-4.4.1-fuse-03-06.zip bridge-camel
10.fuse-fabric> container-change-profile EnterpriseFuseESB bridge-
camel

11. fabric:profile-create --parents default bridge-camel
12. (for both consoles)>container-list
[id] [version] [alive] [profiles] [provision
status]
EnterpriseFuseESB* 1.0 true bridge-camel
root 1.0 true fabric, fabric-ensemble-0000-1

So, profile of joined ESB changed, but download process wasn't
started.
When I put fuse-esb>'list' I hadn't my bundle in a list.

Could you explain me why changing of profile successfully recognized,
but DownloadManager not started at the joined ESB ?

Ioannis Canellos

unread,
Jun 11, 2012, 9:55:42 AM6/11/12
to fusef...@googlegroups.com
You need to install the fabric-agent on any container you want to provision. You seem to be installing the agent on the esb, but trying to provision fabric, which doesn't have the agent installed.

--
Ioannis Canellos


andys...@gmail.com

unread,
Jun 13, 2012, 5:19:31 AM6/13/12
to fusef...@googlegroups.com
Hello.
I have fuse-fabric and fuse-esb enterprise.
Version doesn't matter, it is a question about interaction.

The fuse-esb has been joined to fuse-fabric successfully.
I put in fuse-fabric console:
container-change-profile NameOfJoined-fuse-esb axis-saaj.

What should happened after it ?
The record in ZooKeeper registry has been changed, it is clear.
But who should bring this changing to joined fuse-esb ?

Is fuse-esb checks the ZooKeeper registry by oneself?
Or fuse-fabric knocks to joined fuse-esb and say him:
"hey, you have to install this bundle" ?

Guillaume Nodet

unread,
Jun 13, 2012, 5:23:22 AM6/13/12
to fusef...@googlegroups.com
Have a look at http://gnodet.blogspot.fr/2011/06/provisionning-with-fabric.html
as it may answer some of your questions.
--
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Ioannis Canellos

unread,
Jun 13, 2012, 5:40:06 AM6/13/12
to fusef...@googlegroups.com
Each container, that is running the fabric agent will be notified of changes in the profiles and will start the deployment process.

The agent is not installed by default. So creating a fabric, joining and modifying the profiles is just not enough.

You can read more about fabric here: http://fuse.fusesource.org/fabric/docs/user-guide.html
And more information about how the fabric agent works can be found here: http://fuse.fusesource.org/fabric/docs/fabric-agent.html

andys...@gmail.com

unread,
Jun 13, 2012, 8:39:52 AM6/13/12
to fusef...@googlegroups.com
Thank you, it was useful information.

Could you explain me how I can read the ZooKeeper tree from console of fuse-fabric ?

Ioannis Canellos

unread,
Jun 13, 2012, 8:56:16 AM6/13/12
to fusef...@googlegroups.com
At the bottom of the page there is a section on how to do that: http://fuse.fusesource.org/fabric/docs/fabric-registry.html

sayan...@gmail.com

unread,
May 19, 2014, 4:24:15 AM5/19/14
to fusef...@googlegroups.com, andys...@gmail.com
Try this approach. 

Use the FMC to deploy bundles.
FMC can be found at http://server3:8107
Reply all
Reply to author
Forward
0 new messages