Fix OOM issue in DistributedShell. Contributed by Jian He.
This commit is contained in:
parent
da6f1b88dd
commit
9bdb5bebea
|
@ -900,6 +900,7 @@ public class ApplicationMaster {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e) {
|
public void onError(Throwable e) {
|
||||||
|
LOG.error("Error in RMCallbackHandler: ", e);
|
||||||
done = true;
|
done = true;
|
||||||
amRMClient.stop();
|
amRMClient.stop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,7 @@ public class Client {
|
||||||
// Queue for App master
|
// Queue for App master
|
||||||
private String amQueue = "";
|
private String amQueue = "";
|
||||||
// Amt. of memory resource to request for to run the App Master
|
// 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
|
// Amt. of virtual core resource to request for to run the App Master
|
||||||
private int amVCores = 1;
|
private int amVCores = 1;
|
||||||
|
|
||||||
|
@ -359,7 +359,7 @@ public class Client {
|
||||||
appName = cliParser.getOptionValue("appname", "DistributedShell");
|
appName = cliParser.getOptionValue("appname", "DistributedShell");
|
||||||
amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0"));
|
amPriority = Integer.parseInt(cliParser.getOptionValue("priority", "0"));
|
||||||
amQueue = cliParser.getOptionValue("queue", "default");
|
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"));
|
amVCores = Integer.parseInt(cliParser.getOptionValue("master_vcores", "1"));
|
||||||
|
|
||||||
if (amMemory < 0) {
|
if (amMemory < 0) {
|
||||||
|
|
Loading…
Reference in New Issue