Load job when jobmanager startup

This commit is contained in:
Charles DELFLY
2021-01-13 14:58:02 +07:00
committed by Roy Kim
parent aeedca1a15
commit 77b55c8e53
11 changed files with 61 additions and 49 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
# In flink version < 1.11 we can't use "job cluster" because it's not yet available
if [ "$1" = "standalone-job" ]; then
cd /build
sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
zip -r pinpoint-flink-job-*.jar profiles/
cd -
mv /build/pinpoint-flink-job-*.jar pinpoint-flink-job.jar
shift
/docker-entrypoint.sh jobmanager &
sleep 5
exec flink run $@
else
exec /docker-entrypoint.sh $@
fi