diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2016-05-10 10:34:26 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2016-05-10 10:34:26 -0700 |
commit | 36c5892b4631d1d5d70e569fce12efedd82bdef0 (patch) | |
tree | 7afca5421e06765bd454c2a8f3490e8c4e3e3d86 /yarn/src | |
parent | 488863d87340e0fb68e81ba0be6df7d7c9723992 (diff) | |
download | spark-36c5892b4631d1d5d70e569fce12efedd82bdef0.tar.gz spark-36c5892b4631d1d5d70e569fce12efedd82bdef0.tar.bz2 spark-36c5892b4631d1d5d70e569fce12efedd82bdef0.zip |
[SPARK-13670][LAUNCHER] Propagate error from launcher to shell.
bash doesn't really propagate errors from subshells when using redirection
the way spark-class does; so, instead, this change captures the exit code
of the launcher process in the command array, and checks it before executing
the actual command.
Tested by injecting an error in Main.java (the launcher entry point) and
verifying the shell gets the right exit code from spark-class.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #12910 from vanzin/SPARK-13670.
Diffstat (limited to 'yarn/src')
0 files changed, 0 insertions, 0 deletions