assert status != null;
JobStatus.Kind kind = status.getKind();
switch (kind) {
case COMPLETED:
if (status.getExitCode() != 0) {
throw new ExitCodeException(MessageFormat.format(
"Unexpected exit code from Hadoop job: code={1} ({0})",
info,
String.valueOf(status.getExitCode())), status.getExitCode());
}
return;