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:
Hitesh Shah 2013-01-22 20:49:09 +00:00
parent 937ab16736
commit f5551bf809
4 changed files with 389 additions and 393 deletions

View File

@ -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

View File

@ -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 Client(Configuration conf) throws Exception {
/**
*/
public Client() throws Exception {
this(new Configuration());
this(new YarnConfiguration());
}
/**

View File

@ -120,6 +120,7 @@ public void testDSShellWithNoArgs() throws Exception {
boolean exceptionThrown = false;
try {
boolean initSuccess = client.init(args);
Assert.assertTrue(initSuccess);
}
catch (IllegalArgumentException e) {
exceptionThrown = true;