HBASE-10830 Integration test MR jobs attempt to load htrace jars from the wrong location
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1583826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
556f7fa07e
commit
62327bc08d
|
@ -123,11 +123,18 @@ public class IntegrationTestImportTsv implements Configurable, Tool {
|
||||||
util = new IntegrationTestingUtility();
|
util = new IntegrationTestingUtility();
|
||||||
}
|
}
|
||||||
util.initializeCluster(1);
|
util.initializeCluster(1);
|
||||||
|
if (!util.isDistributedCluster()) {
|
||||||
|
// also need MR when running without a real cluster
|
||||||
|
util.startMiniMapReduceCluster();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@AfterClass
|
||||||
public static void releaseCluster() throws Exception {
|
public static void releaseCluster() throws Exception {
|
||||||
util.restoreCluster();
|
util.restoreCluster();
|
||||||
|
if (!util.isDistributedCluster()) {
|
||||||
|
util.shutdownMiniMapReduceCluster();
|
||||||
|
}
|
||||||
util = null;
|
util = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1024,10 +1024,22 @@ public class IntegrationTestBigLinkedList extends IntegrationTestBase {
|
||||||
@Override
|
@Override
|
||||||
public void setUpCluster() throws Exception {
|
public void setUpCluster() throws Exception {
|
||||||
util = getTestingUtil(getConf());
|
util = getTestingUtil(getConf());
|
||||||
util.initializeCluster(util.isDistributedCluster() ? 1 : this.NUM_SLAVES_BASE);
|
boolean isDistributed = util.isDistributedCluster();
|
||||||
|
util.initializeCluster(isDistributed ? 1 : this.NUM_SLAVES_BASE);
|
||||||
|
if (!isDistributed) {
|
||||||
|
util.startMiniMapReduceCluster();
|
||||||
|
}
|
||||||
this.setConf(util.getConfiguration());
|
this.setConf(util.getConfiguration());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void cleanUpCluster() throws Exception {
|
||||||
|
super.cleanUpCluster();
|
||||||
|
if (util.isDistributedCluster()) {
|
||||||
|
util.shutdownMiniMapReduceCluster();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testContinuousIngest() throws IOException, Exception {
|
public void testContinuousIngest() throws IOException, Exception {
|
||||||
//Loop <num iterations> <num mappers> <num nodes per mapper> <output dir> <num reducers>
|
//Loop <num iterations> <num mappers> <num nodes per mapper> <output dir> <num reducers>
|
||||||
|
|
|
@ -127,9 +127,18 @@ public class IntegrationTestLoadAndVerify extends IntegrationTestBase {
|
||||||
getConf().setLong(NUM_TO_WRITE_KEY, NUM_TO_WRITE_DEFAULT / 100);
|
getConf().setLong(NUM_TO_WRITE_KEY, NUM_TO_WRITE_DEFAULT / 100);
|
||||||
getConf().setInt(NUM_MAP_TASKS_KEY, NUM_MAP_TASKS_DEFAULT / 100);
|
getConf().setInt(NUM_MAP_TASKS_KEY, NUM_MAP_TASKS_DEFAULT / 100);
|
||||||
getConf().setInt(NUM_REDUCE_TASKS_KEY, NUM_REDUCE_TASKS_DEFAULT / 10);
|
getConf().setInt(NUM_REDUCE_TASKS_KEY, NUM_REDUCE_TASKS_DEFAULT / 10);
|
||||||
|
util.startMiniMapReduceCluster();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void cleanUpCluster() throws Exception {
|
||||||
|
super.cleanUpCluster();
|
||||||
|
if (!util.isDistributedCluster()) {
|
||||||
|
util.shutdownMiniMapReduceCluster();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a "long" value between endian systems.
|
* Converts a "long" value between endian systems.
|
||||||
* Borrowed from Apache Commons IO
|
* Borrowed from Apache Commons IO
|
||||||
|
|
Loading…
Reference in New Issue