Github user DarkKnightCZ commented on a diff in the pull request:
https://github.com/apache/flink/pull/609#discussion_r28688289
--- Diff: flink-dist/src/main/flink-bin/bin/start-cluster.sh ---
@@ -37,6 +37,26 @@ fi
# cluster mode, bring up job manager locally and a task manager on every
slave host
"$FLINK_BIN_DIR"/jobmanager.sh start cluster
+# wait until jobmanager starts
+JOBMANAGER_ADDR=$(readFromConfig ${KEY_JOBM_RPC_ADDR}
"${DEFAULT_JOBM_RPC_ADDR}" "${YAML_CONF}")
+JOBMANAGER_PORT=$(readFromConfig ${KEY_JOBM_RPC_PORT}
"${DEFAULT_JOBM_RPC_PORT}" "${YAML_CONF}")
+
+echo "Waiting for job manager"
+for i in {1..30}; do
+ nc -z "${JOBMANAGER_ADDR}" $JOBMANAGER_PORT
--- End diff --
@rmetzger
Since "-z" does only port-pinging (no actual payload is sent), nothing is
visible in logs (if you send some data, its correctly logged as WARN "incorrect
header" by org.apache.flink.runtime.ipc.Server)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---