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-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
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -18,10 +18,7 @@
|
|||||||
|
|
||||||
package org.apache.hadoop.yarn.applications.distributedshell;
|
package org.apache.hadoop.yarn.applications.distributedshell;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -212,7 +209,7 @@ public Client(Configuration conf) throws Exception {
|
|||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public Client() throws Exception {
|
public Client() throws Exception {
|
||||||
this(new Configuration());
|
this(new YarnConfiguration());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -120,6 +120,7 @@ public void testDSShellWithNoArgs() throws Exception {
|
|||||||
boolean exceptionThrown = false;
|
boolean exceptionThrown = false;
|
||||||
try {
|
try {
|
||||||
boolean initSuccess = client.init(args);
|
boolean initSuccess = client.init(args);
|
||||||
|
Assert.assertTrue(initSuccess);
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e) {
|
catch (IllegalArgumentException e) {
|
||||||
exceptionThrown = true;
|
exceptionThrown = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user