|
@@ -129,13 +129,11 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.Capacity
|
|
|
import org.apache.hadoop.yarn.util.Clock;
|
|
|
import org.apache.hadoop.yarn.util.Records;
|
|
|
import org.apache.hadoop.yarn.util.UTCClock;
|
|
|
-import org.apache.log4j.Level;
|
|
|
-import org.apache.log4j.LogManager;
|
|
|
-import org.apache.log4j.Logger;
|
|
|
import org.junit.Assert;
|
|
|
import org.junit.Before;
|
|
|
import org.junit.Test;
|
|
|
import org.mockito.ArgumentCaptor;
|
|
|
+import org.slf4j.event.Level;
|
|
|
|
|
|
public class TestYarnClient {
|
|
|
|
|
@@ -421,8 +419,7 @@ public class TestYarnClient {
|
|
|
|
|
|
@Test(timeout = 30000)
|
|
|
public void testApplicationType() throws Exception {
|
|
|
- Logger rootLogger = LogManager.getRootLogger();
|
|
|
- rootLogger.setLevel(Level.DEBUG);
|
|
|
+ GenericTestUtils.setRootLogLevel(Level.DEBUG);
|
|
|
MockRM rm = new MockRM();
|
|
|
rm.start();
|
|
|
RMApp app = rm.submitApp(2000);
|
|
@@ -437,8 +434,7 @@ public class TestYarnClient {
|
|
|
|
|
|
@Test(timeout = 30000)
|
|
|
public void testApplicationTypeLimit() throws Exception {
|
|
|
- Logger rootLogger = LogManager.getRootLogger();
|
|
|
- rootLogger.setLevel(Level.DEBUG);
|
|
|
+ GenericTestUtils.setRootLogLevel(Level.DEBUG);
|
|
|
MockRM rm = new MockRM();
|
|
|
rm.start();
|
|
|
RMApp app1 =
|