1 =================================
\r
2 DMAAP MESSAGE ROUTER INSTALLATION
\r
3 =================================
\r
4 This document describes how to install and access DMaaP Message Router.
\r
5 Message Router has 3 docker containers. Dmaap\_container,
\r
6 kafka\_contaienr and zookeeper\_container. Zookeeper runs on 172.18.0.3,
\r
7 kafka runs on 172.18.0.2 and dmaap on 172.18.0.4.
\r
9 1) Clone message service repo
\r
11 git clone http://gerrit.onap.org/r/dmaap/messagerouter/messageservice
\r
14 messageservice/bundleconfig-local/etc/appprops/MsgRtrApi.properties
\r
15 to /var/tmp directory
\r
17 3) In /var/tmp/MsgRtrApi.properties, change value of below variables as
\r
20 config.zk.servers=172.18.0.3
\r
22 kafka.metadata.broker.list=172.18.0.2:9092
\r
24 4) Install docker and docker-compose
\r
26 5) Go to messageservice/src/main/resources/docker-compose and run:
\r
28 docker-compose up
\96d
\r
30 This should start 3 containers.
\r
32 6) Run
\91docker ps
\92. It should show 3 containers.
\r
36 .. |image0| image:: docker.png
\r
43 - For publishing, create a sample.txt file with some content in the
\r
44 directory where you will run below rest api. Run below rest api:
\r
46 curl -H "Content-Type:text/plain" -X POST -d @sample.txt
\r
47 http://172.18.0.4:3904/events/TestTopic1
\r
49 - For subscribing, run below rest api:
\r
51 curl -H "Content-Type:text/plain" -XGET
\r
52 http://172.18.0.4:3904/events/TestTopic1/CG1/C1?timeout=1000
\r
54 Note: You will only receive messages which have been published after
\r
55 you have subscribed to a topic.
\r