Increase robustness for TCA 13/47513/2
authorLusheng Ji <lji@research.att.com>
Tue, 15 May 2018 02:45:56 +0000 (22:45 -0400)
committerLusheng Ji <lji@research.att.com>
Tue, 15 May 2018 03:02:39 +0000 (23:02 -0400)
commite380f6bb14fb0e5fae4e9a6d9b9af40a9340f11a
tree5888b27d73d51e58403ab3873af972b734068cd2
parent430b6b44fcd1dfa917cb599962ae6ef332581ede
Increase robustness for TCA

Enhanced TCA robustness against unprovisioned topics.
When the configuration tells TCA to subscribe to a non-existent MR topic,
TCA will attempt but stop because subscribing to such topics resulted
failure.  The enhancements implemented here will test for sub topic, and if
non-existent, make a publish to create the topic.
Additional enhancements include:
1. restart TCA is the number of workers is below expected (3);
2. allow MR subscriber group and id be set via environment variables
DMAAPSUBGROUP and DMAAPSUBID.
3. Minor version is bumped.

Issue-ID: DCAEGEN2-502
Change-Id: I3414a96706a1b720184cd657324db4d11db12590
Signed-off-by: Lusheng Ji <lji@research.att.com>
tca-cdap-container/Dockerfile
tca-cdap-container/get-tca.sh
tca-cdap-container/mr-watchdog.sh [new file with mode: 0755]
tca-cdap-container/pom.xml
tca-cdap-container/restart.sh