1)Before Creating Fabrics for both nodes add the below two jar files in this location /opt/FuseMQEnterprise-7.1.0/lib/ext.
c3p0-0.9.1.2.jar
ojdbc6.jar
2)Create Fabrics in Both ESB and MQ of ESB13 and ESB14 Machines
fabric:create --clean node-01 ESB and MQ
fabric:create --clean node-02 ESB and MQ
3)Join ESB and MQ Containers of node-01 into node-02
fabric:join --zookeeper-password admin HOST1:2181 (in node-02 ESB)
fabric:join --zookeeper-password admin HOST1:2181 (in node-02 MQ)
4)Create Ensemble for the containers
ensemble-add mq-root-node02 rt-root-node02
5)Create Children from any of the Console for both ESB's
container-create-child rt-root-node01 rt-application-node01
container-create-child rt-root-node02 rt-application-node02
6)Create Children from any of the Console for both MQ's
For MQ node01
container-create-child mq-root-node01 mq-broker1-node01
container-create-child mq-root-node01 mq-broker2-node01
For MQ node02
container-create-child mq-root-node02 mq-broker1-node02
container-create-child mq-root-node02 mq-broker2-node02
7)Find Zookeeper URL to add all containers into FMC
config:edit org.fusesource.fabric.zookeeper
config:proplist
example :
service.pid = org.fusesource.fabric.zookeeper
zookeeper.password = 3Aibuf25GTGr6Rc4
zookeeper.url = HOST1:2182,HOST2:2181,HOST2:2182
fabric.zookeeper.pid = org.fusesource.fabric.zookeeper
Add any of the URL's into FMC example
Host:HOST2
Prot:2181
password:25GTGr6Rc4
You could See all the containers are joined into FMC
8)Stop All MQ children for both nodes from FMC.
stop mq-broker1-node01,mq-broker2-node01,mq-broker1-node02,mq-broker2-node02
9)Modify broker.xml from FMC
goto profiles tab click profile mq-base
goto config-files tab and open broker.xml
add below snippet to broker.xml
modify
below snippet
to
10)Add Boot Deligation Properties to children of MQ for both nodes
goto location where Fuse-MQ is installed in node1
goto instances you will find mq-broker1-node1,mq-broker2-node1
goto etc folder and open config.properties file
search for string org.osgi.framework.bootdelegation=
and append this string ",oracle.*,com.mchange.*" at the last and save
goto location where Fuse-MQ is installed in node2
goto instances you will find mq-broker1-node2,mq-broker2-node2
goto etc folder and open config.properties file
search for string org.osgi.framework.bootdelegation=
and append this string ",oracle.*,com.mchange.*" at the last and save
11)Create Network connection of brokers from any of karaf console
mq-create --group mq-network-broker1 --networks mq-network-broker2 --assign-container mq-broker1-node01,mq-broker1-node02 mq-broker-01
mq-create --group mq-network-broker2 --networks mq-network-broker1 --assign-container mq-broker2-node01,mq-broker2-node02 mq-broker-02
12)Now Start all the MQ Children from FMC
13)Install All as Services
From FMC
Add Feature wrapper to the profile fuse-esb-full
Add Feature wrapper to the profile mq-broker-01
Add Feature wrapper to the profile mq-broker-02
Node-01
Add profile fuse-esb-full to rt-application-node01
container-connect node rt-application-node01
wrapper:install -s DEMAND_START -n rt-application-node01 -d rt-application-node01 -D rt-application-node01
ln -s /opt/FuseMQEnterprise-7.1.0/instances/rt-application-node01/bin/rt-application-node01-service /etc/init.d/
container-connect node mq-broker1-node01
wrapper:install -s DEMAND_START -n mq-broker1-node01 -d mq-broker1-node01 -D mq-broker1-node01
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker1-node01/bin/mq-broker1-node01-service /etc/init.d/
container-connect node mq-broker2-node01
wrapper:install -s DEMAND_START -n mq-broker2-node01 -d mq-broker2-node01 -D mq-broker2-node01
Node-02
Add profile fuse-esb-full to rt-application-node02
container-connect node rt-application-node02
wrapper:install -s DEMAND_START -n rt-application-node02 -d rt-application-node02 -D rt-application-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/rt-application-node02/bin/rt-application-node02-service /etc/init.d/
container-connect node mq-broker1-node02
wrapper:install -s DEMAND_START -n mq-broker1-node02 -d mq-broker1-node02 -D mq-broker1-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker1-node02/bin/mq-broker1-node02-service /etc/init.d/
container-connect node mq-broker2-node02
wrapper:install -s DEMAND_START -n mq-broker2-node02 -d mq-broker2-node02 -D mq-broker2-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker2-node02/bin/mq-broker2-node02-service /etc/init.d/
c3p0-0.9.1.2.jar
ojdbc6.jar
2)Create Fabrics in Both ESB and MQ of ESB13 and ESB14 Machines
fabric:create --clean node-01 ESB and MQ
fabric:create --clean node-02 ESB and MQ
3)Join ESB and MQ Containers of node-01 into node-02
fabric:join --zookeeper-password admin HOST1:2181 (in node-02 ESB)
fabric:join --zookeeper-password admin HOST1:2181 (in node-02 MQ)
4)Create Ensemble for the containers
ensemble-add mq-root-node02 rt-root-node02
5)Create Children from any of the Console for both ESB's
container-create-child rt-root-node01 rt-application-node01
container-create-child rt-root-node02 rt-application-node02
6)Create Children from any of the Console for both MQ's
For MQ node01
container-create-child mq-root-node01 mq-broker1-node01
container-create-child mq-root-node01 mq-broker2-node01
For MQ node02
container-create-child mq-root-node02 mq-broker1-node02
container-create-child mq-root-node02 mq-broker2-node02
7)Find Zookeeper URL to add all containers into FMC
config:edit org.fusesource.fabric.zookeeper
config:proplist
example :
service.pid = org.fusesource.fabric.zookeeper
zookeeper.password = 3Aibuf25GTGr6Rc4
zookeeper.url = HOST1:2182,HOST2:2181,HOST2:2182
fabric.zookeeper.pid = org.fusesource.fabric.zookeeper
Add any of the URL's into FMC example
Host:HOST2
Prot:2181
password:25GTGr6Rc4
You could See all the containers are joined into FMC
8)Stop All MQ children for both nodes from FMC.
stop mq-broker1-node01,mq-broker2-node01,mq-broker1-node02,mq-broker2-node02
9)Modify broker.xml from FMC
goto profiles tab click profile mq-base
goto config-files tab and open broker.xml
add below snippet to broker.xml
modify
below snippet
to
10)Add Boot Deligation Properties to children of MQ for both nodes
goto location where Fuse-MQ is installed in node1
goto instances you will find mq-broker1-node1,mq-broker2-node1
goto etc folder and open config.properties file
search for string org.osgi.framework.bootdelegation=
and append this string ",oracle.*,com.mchange.*" at the last and save
goto location where Fuse-MQ is installed in node2
goto instances you will find mq-broker1-node2,mq-broker2-node2
goto etc folder and open config.properties file
search for string org.osgi.framework.bootdelegation=
and append this string ",oracle.*,com.mchange.*" at the last and save
11)Create Network connection of brokers from any of karaf console
mq-create --group mq-network-broker1 --networks mq-network-broker2 --assign-container mq-broker1-node01,mq-broker1-node02 mq-broker-01
mq-create --group mq-network-broker2 --networks mq-network-broker1 --assign-container mq-broker2-node01,mq-broker2-node02 mq-broker-02
12)Now Start all the MQ Children from FMC
13)Install All as Services
From FMC
Add Feature wrapper to the profile fuse-esb-full
Add Feature wrapper to the profile mq-broker-01
Add Feature wrapper to the profile mq-broker-02
Node-01
Add profile fuse-esb-full to rt-application-node01
container-connect node rt-application-node01
wrapper:install -s DEMAND_START -n rt-application-node01 -d rt-application-node01 -D rt-application-node01
ln -s /opt/FuseMQEnterprise-7.1.0/instances/rt-application-node01/bin/rt-application-node01-service /etc/init.d/
container-connect node mq-broker1-node01
wrapper:install -s DEMAND_START -n mq-broker1-node01 -d mq-broker1-node01 -D mq-broker1-node01
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker1-node01/bin/mq-broker1-node01-service /etc/init.d/
container-connect node mq-broker2-node01
wrapper:install -s DEMAND_START -n mq-broker2-node01 -d mq-broker2-node01 -D mq-broker2-node01
Node-02
Add profile fuse-esb-full to rt-application-node02
container-connect node rt-application-node02
wrapper:install -s DEMAND_START -n rt-application-node02 -d rt-application-node02 -D rt-application-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/rt-application-node02/bin/rt-application-node02-service /etc/init.d/
container-connect node mq-broker1-node02
wrapper:install -s DEMAND_START -n mq-broker1-node02 -d mq-broker1-node02 -D mq-broker1-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker1-node02/bin/mq-broker1-node02-service /etc/init.d/
container-connect node mq-broker2-node02
wrapper:install -s DEMAND_START -n mq-broker2-node02 -d mq-broker2-node02 -D mq-broker2-node02
ln -s /opt/FuseMQEnterprise-7.1.0/instances/mq-broker2-node02/bin/mq-broker2-node02-service /etc/init.d/
No comments:
Post a Comment