Fix OOM issue in DistributedShell. Contributed by Jian He.

This commit is contained in:
Junping Du 2016-07-09 05:09:53 -07:00
parent da6f1b88dd
commit 9bdb5bebea
2 changed files with 3 additions and 2 deletions

View File

@ -900,6 +900,7 @@ public float getProgress() {
@Override
public void onError(Throwable e) {
LOG.error("Error in RMCallbackHandler: ", e);
done = true;
amRMClient.stop();
}

View File

@ -128,7 +128,7 @@ public class Client {
// Queue for App master
private String amQueue = "";
// Amt. of memory resource to request for to run the App Master
private long amMemory = 10;
private long amMemory = 100;
// Amt. of virtual core resource to request for to run the App Master
private int amVCores = 1;
@ -359,7 +359,7 @@ public boolean init(String[] args) throws ParseException {
appName = cliParser.getOptionValue("appname", "DistributedShell");
amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0"));
amQueue = cliParser.getOptionValue("queue", "default");
amMemory = Integer.parseInt(cliParser.getOptionValue("master_memory", "10"));
amMemory = Integer.parseInt(cliParser.getOptionValue("master_memory", "100"));
amVCores = Integer.parseInt(cliParser.getOptionValue("master_vcores", "1"));
if (amMemory < 0) {