HADOOP-12495. Fix posix_spawn error on OS X (aw)
This commit is contained in:
parent
14f0e2787c
commit
b37c41fd6e
|
@ -817,6 +817,9 @@ public abstract class Shell {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
exitCode = 0; // reset for next run
|
exitCode = 0; // reset for next run
|
||||||
|
if (Shell.MAC) {
|
||||||
|
System.setProperty("jdk.lang.Process.launchMechanism", "POSIX_SPAWN");
|
||||||
|
}
|
||||||
runCommand();
|
runCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue