YARN-277. Use AMRMClient in DistributedShell to exemplify the approach. Contributed by Bikas Saha
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1437156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
937ab16736
commit
f5551bf809
|
@ -101,6 +101,9 @@ Release 2.0.3-alpha - Unreleased
|
|||
|
||||
YARN-331. Fill in missing fair scheduler documentation. (sandyr via tucu)
|
||||
|
||||
YARN-277. Use AMRMClient in DistributedShell to exemplify the approach.
|
||||
(Bikas Saha via hitesh)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,10 +18,7 @@
|
|||
|
||||
package org.apache.hadoop.yarn.applications.distributedshell;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -212,7 +209,7 @@ public class Client extends YarnClientImpl {
|
|||
/**
|
||||
*/
|
||||
public Client() throws Exception {
|
||||
this(new Configuration());
|
||||
this(new YarnConfiguration());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -120,6 +120,7 @@ public class TestDistributedShell {
|
|||
boolean exceptionThrown = false;
|
||||
try {
|
||||
boolean initSuccess = client.init(args);
|
||||
Assert.assertTrue(initSuccess);
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
exceptionThrown = true;
|
||||
|
|
Loading…
Reference in New Issue