/** * Generate the data in a REPLAY submission policy with RoundRobinUserResolver * mode and verify whether the generated data matches with the given * input size or not. * @throws Exception */ @Test public void testGenerateDataWithREPLAYSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSize = cSize * 300; String [] runtimeValues ={"LOADJOB", RoundRobinUserResolver.class.getName(), "REPLAY", inputSize +"m", "file://" + cluster.getProxyUsersFilePath(), "file:///dev/null"}; int exitCode = UtilsForGridmix.runGridmixJob(gridmixDir, conf,GridMixRunMode.DATA_GENERATION, runtimeValues); Assert.assertEquals("Data generation has failed.", 0 , exitCode); checkGeneratedDataAndJobStatus(inputSize); }
/** * Generate the data in a REPLAY submission policy with RoundRobinUserResolver * mode and verify whether the generated data matches with the given * input size or not. * @throws Exception */ @Test public void testGenerateDataWithREPLAYSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSize = cSize * 300; String [] runtimeValues ={"LOADJOB", RoundRobinUserResolver.class.getName(), "REPLAY", inputSize +"m", "file://" + UtilsForGridmix.getProxyUsersFile(cluster.getHadoopProxyUsers()), "file:///dev/null"}; int exitCode = UtilsForGridmix.runGridmixJob(gridmixDir, conf,GridMixRunMode.DATA_GENERATION, runtimeValues); Assert.assertEquals("Data generation has failed.", 0 , exitCode); checkGeneratedDataAndJobStatus(inputSize); }
/** * Generate the data in a REPLAY submission policy with RoundRobinUserResolver * mode and verify whether the generated data matches with the given * input size or not. * @throws Exception */ @Test public void testGenerateDataWithREPLAYSubmission() throws Exception { conf = rtClient.getDaemonConf(); final long inputSizeInMB = cSize * 300; String [] runtimeValues = {"LOADJOB", RoundRobinUserResolver.class.getName(), "REPLAY", inputSizeInMB +"m", "file://" + UtilsForGridmix.getProxyUsersFile(conf), "file:///dev/null"}; String [] otherArgs = { "-D", GridMixConfig.GRIDMIX_DISTCACHE_ENABLE + "=false", "-D", GridMixConfig.GRIDMIX_COMPRESSION_ENABLE + "=false" }; int exitCode = UtilsForGridmix.runGridmixJob(gridmixDir, conf, GridMixRunMode.DATA_GENERATION.getValue(), runtimeValues, otherArgs); Assert.assertEquals("Data generation has failed.", 0 , exitCode); checkGeneratedDataAndJobStatus(inputSizeInMB); }