|
@@ -17,19 +17,18 @@
|
|
*/
|
|
*/
|
|
package org.apache.hadoop.mapred.gridmix;
|
|
package org.apache.hadoop.mapred.gridmix;
|
|
|
|
|
|
-import org.apache.commons.logging.LogFactory;
|
|
|
|
-import org.apache.commons.logging.impl.Log4JLogger;
|
|
|
|
import org.apache.hadoop.conf.Configuration;
|
|
import org.apache.hadoop.conf.Configuration;
|
|
import org.apache.hadoop.fs.FileSystem;
|
|
import org.apache.hadoop.fs.FileSystem;
|
|
import org.apache.hadoop.fs.FSDataOutputStream;
|
|
import org.apache.hadoop.fs.FSDataOutputStream;
|
|
import org.apache.hadoop.fs.Path;
|
|
import org.apache.hadoop.fs.Path;
|
|
|
|
+import org.apache.hadoop.test.GenericTestUtils;
|
|
import org.apache.hadoop.tools.rumen.JobStory;
|
|
import org.apache.hadoop.tools.rumen.JobStory;
|
|
import org.apache.hadoop.tools.rumen.JobStoryProducer;
|
|
import org.apache.hadoop.tools.rumen.JobStoryProducer;
|
|
import org.apache.hadoop.util.ExitUtil;
|
|
import org.apache.hadoop.util.ExitUtil;
|
|
-import org.apache.log4j.Level;
|
|
|
|
import org.junit.AfterClass;
|
|
import org.junit.AfterClass;
|
|
import org.junit.BeforeClass;
|
|
import org.junit.BeforeClass;
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
|
|
+import org.slf4j.event.Level;
|
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.ByteArrayOutputStream;
|
|
@@ -41,6 +40,7 @@ import java.util.zip.GZIPInputStream;
|
|
|
|
|
|
import static org.apache.hadoop.test.GenericTestUtils.assertExceptionContains;
|
|
import static org.apache.hadoop.test.GenericTestUtils.assertExceptionContains;
|
|
import static org.junit.Assert.*;
|
|
import static org.junit.Assert.*;
|
|
|
|
+import static org.slf4j.LoggerFactory.getLogger;
|
|
|
|
|
|
public class TestGridmixSubmission extends CommonJobTest {
|
|
public class TestGridmixSubmission extends CommonJobTest {
|
|
private static File inSpace = new File("src" + File.separator + "test"
|
|
private static File inSpace = new File("src" + File.separator + "test"
|
|
@@ -48,8 +48,8 @@ public class TestGridmixSubmission extends CommonJobTest {
|
|
|
|
|
|
|
|
|
|
static {
|
|
static {
|
|
- ((Log4JLogger) LogFactory.getLog("org.apache.hadoop.mapred.gridmix"))
|
|
|
|
- .getLogger().setLevel(Level.DEBUG);
|
|
|
|
|
|
+ GenericTestUtils.setLogLevel(
|
|
|
|
+ getLogger("org.apache.hadoop.mapred.gridmix"), Level.DEBUG);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|