Description
Running "hadoop.cmd jar" does not always propagate the exit code to the caller. In interactive use, it works fine. However, in some usages (notably Hive), it gets called through Shell#getRunScriptCommand, which needs to do an intermediate "cmd /c" to execute the script. In that case, the last exit code is getting dropped, so Hive can't detect job failures.