summaryrefslogtreecommitdiffstats
path: root/tca-cdap-container/get-tca.sh
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-05-14 22:45:56 -0400
committerLusheng Ji <lji@research.att.com>2018-05-14 23:02:39 -0400
commite380f6bb14fb0e5fae4e9a6d9b9af40a9340f11a (patch)
tree5888b27d73d51e58403ab3873af972b734068cd2 /tca-cdap-container/get-tca.sh
parent430b6b44fcd1dfa917cb599962ae6ef332581ede (diff)
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>
Diffstat (limited to 'tca-cdap-container/get-tca.sh')
-rwxr-xr-xtca-cdap-container/get-tca.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tca-cdap-container/get-tca.sh b/tca-cdap-container/get-tca.sh
index 9b46830..784d914 100755
--- a/tca-cdap-container/get-tca.sh
+++ b/tca-cdap-container/get-tca.sh
@@ -37,7 +37,7 @@ echo "Getting version $VERSION of $GROUPID.$ARTIFACTID from $REPO repo on $NEXUS
if [ "$REPO" == "snapshots" ]; then
# SNOTSHOT repo container many snapshots for each version. get the newest among them
URL="${PROTO}://${NEXUSREPO}/service/local/repositories/${REPO}/content/${GROUPID//.//}/${ARTIFACTID}/${VERSION}/maven-metadata.xml"
- VT=$(wget --no-check-certificate -O- $URL | grep -m 1 \<value\> | sed -e 's/<value>\(.*\)<\/value>/\1/' | sed -e 's/ //g')
+ VT=$(wget --no-check-certificate -O- "$URL" | grep -m 1 \<value\> | sed -e 's/<value>\(.*\)<\/value>/\1/' | sed -e 's/ //g')
else
VT=${VERSION}
fi