@BeforeClass public static void setupBeforeClass() throws Exception { UnitTestHelper.setJavaLoggingLevel(Level.SEVERE); LOG.info("Starting up YARN cluster"); zkServerComponent = new ZKServerComponent(); yarnComponent = new YarnComponent().withApplicationMasterClass(ApplicationMaster.class).withTestName(MaasIntegrationTest.class.getSimpleName()); runner = new ComponentRunner.Builder() .withComponent("yarn", yarnComponent) .withComponent("zk", zkServerComponent) .withMillisecondsBetweenAttempts(15000) .withNumRetries(10) .build(); runner.start(); String zookeeperUrl = zkServerComponent.getConnectionString(); RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3); client = CuratorFrameworkFactory.newClient(zookeeperUrl, retryPolicy); client.start(); }
.withComponent("config", configUploadComponent) .withComponent("storm", fluxComponent) .withMillisecondsBetweenAttempts(15000) .withCustomShutdownOrder(new String[]{"storm","config","kafka","zk"}) .withNumRetries(10)
.withComponent("config", configUploadComponent) .withComponent("org/apache/storm", parserTopologyComponent) .withMillisecondsBetweenAttempts(5000) .withCustomShutdownOrder(new String[]{"org/apache/storm","config","kafka","zk"}) .withNumRetries(10)
.withComponent("config", configUploadComponent) .withComponent("storm", fluxComponent) .withMillisecondsBetweenAttempts(1500) .withNumRetries(NUM_RETRIES) .withMaxTimeMS(TOTAL_TIME_MS);
.withComponent("config", configUploadComponent) .withComponent("org/apache/storm", parserTopologyComponent) .withMillisecondsBetweenAttempts(5000) .withNumRetries(10) .withCustomShutdownOrder(new String[]{"org/apache/storm","config","kafka","zk"})