Apache Lucene open-source search software
SOLR-1301: make debugging these tests a whole lot easier by sending map reduce job logging to std out
Mark Robert Miller50e277c1ef6f
diff --git a/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineBasicMiniMRTest.java b/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineBasicMiniMRTest.javaindex ba6fc3c86c7..298eb6546ca 100644--- a/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineBasicMiniMRTest.java+++ b/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineBasicMiniMRTest.java@@ -316,6 +316,7 @@ public class MorphlineBasicMiniMRTest extends SolrTestCaseJ4 {fs.copyFromLocalFile(new Path(DOCUMENTS_DIR, inputAvroFile), dataDir);JobConf jobConf = getJobConf();+ jobConf.set("jobclient.output.filter", "ALL");if (ENABLE_LOCAL_JOB_RUNNER) { // enable Hadoop LocalJobRunner; this enables to run in debugger and set breakpointsjobConf.set("mapred.job.tracker", "local");}diff --git a/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineGoLiveMiniMRTest.java b/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineGoLiveMiniMRTest.javaindex 03068e33a39..e39f9f8b8b6 100644--- a/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineGoLiveMiniMRTest.java+++ b/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineGoLiveMiniMRTest.java@@ -362,6 +362,7 @@ public class MorphlineGoLiveMiniMRTest extends AbstractFullDistribZkTestBase {Path INPATH = upAvroFile(fs, inDir, DATADIR, dataDir, inputAvroFile1);JobConf jobConf = getJobConf();+ jobConf.set("jobclient.output.filter", "ALL");// enable mapred.job.tracker = local to run in debugger and set breakpoints// jobConf.set("mapred.job.tracker", "local");jobConf.setMaxMapAttempts(1);