Skip to content

Commit

Permalink
[FLINK-5503] [log] Print error message in case MesosApplicationMaster…
Browse files Browse the repository at this point in the history
…Runner fails

This PR adds an error message to the mesos-appmaster.sh script which is printed in case
that the MesosApplicationMasterRunner fails.

This closes apache#3162.
  • Loading branch information
tillrohrmann committed Jan 23, 2017
1 parent 3b32d1b commit 33780ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ export FLINK_LIB_DIR

$JAVA_RUN $JVM_ARGS -classpath "$CC_CLASSPATH" $log_setting org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner "$@"

rc=$?

if [[ $rc -ne 0 ]]; then
echo "Error while starting the mesos application master. Please check ${log} for more details."
fi

exit $rc

0 comments on commit 33780ef

Please sign in to comment.