flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trohrm...@apache.org
Subject [2/2] flink git commit: [FLINK-5503] [log] Print error message in case MesosApplicationMasterRunner fails
Date Mon, 23 Jan 2017 12:52:15 GMT
[FLINK-5503] [log] Print error message in case MesosApplicationMasterRunner fails

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

This closes #3162.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/33780ef4
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/33780ef4
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/33780ef4

Branch: refs/heads/master
Commit: 33780ef4f9ffde5151aa5e86018fdd1855a9e47f
Parents: 3b32d1b
Author: Till Rohrmann <trohrmann@apache.org>
Authored: Wed Jan 18 17:36:33 2017 +0100
Committer: Till Rohrmann <trohrmann@apache.org>
Committed: Mon Jan 23 13:51:42 2017 +0100

----------------------------------------------------------------------
 flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/33780ef4/flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh
----------------------------------------------------------------------
diff --git a/flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh b/flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh
index 882b666..2fe66bb 100755
--- a/flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh
+++ b/flink-dist/src/main/flink-bin/mesos-bin/mesos-appmaster.sh
@@ -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


Mime
View raw message