Fix OOM issue in DistributedShell. Contributed by Jian He.
(cherry picked from commit 9bdb5bebea1183ec2f697ee3e55392df4fe697bb) (cherry picked from commit 7db796562c0a512bb626c207b6ed0169e3bbe92f)
This commit is contained in:
parent
96e68e722f
commit
25ea7cc373
@ -862,6 +862,7 @@ public float getProgress() {
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
LOG.error("Error in RMCallbackHandler: ", e);
|
||||
done = true;
|
||||
amRMClient.stop();
|
||||
}
|
||||
|
@ -127,7 +127,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;
|
||||
|
||||
@ -344,7 +344,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user