|
@@ -55,16 +55,20 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.Capacity
|
|
|
import org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator;
|
|
|
import org.apache.hadoop.yarn.util.resource.ResourceCalculator;
|
|
|
import org.apache.hadoop.yarn.util.resource.Resources;
|
|
|
-import org.eclipse.jetty.util.log.Log;
|
|
|
import org.junit.Before;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
import org.junit.runners.Parameterized;
|
|
|
import org.junit.runners.Parameterized.Parameters;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
|
|
@RunWith(Parameterized.class)
|
|
|
public class TestGreedyReservationAgent {
|
|
|
|
|
|
+ private static final Logger LOG = LoggerFactory
|
|
|
+ .getLogger(TestGreedyReservationAgent.class);
|
|
|
+
|
|
|
ReservationAgent agent;
|
|
|
InMemoryPlan plan;
|
|
|
Resource minAlloc = Resource.newInstance(1024, 1);
|
|
@@ -89,7 +93,7 @@ public class TestGreedyReservationAgent {
|
|
|
|
|
|
long seed = rand.nextLong();
|
|
|
rand.setSeed(seed);
|
|
|
- Log.getLog().info("Running with seed: " + seed);
|
|
|
+ LOG.info("Running with seed: " + seed);
|
|
|
|
|
|
// setting completely loose quotas
|
|
|
long timeWindow = 1000000L;
|