globalConfigEmpty); try { runner.start(); kafkaComponent.writeMessages(sensorType, inputMessages); Processor allResultsProcessor = new AllResultsProcessor(inputMessages, Constants.ENRICHMENT_TOPIC);
runner.start(); kafkaComponent.writeMessages(emptyObjectSensorType, emptyObjectInputMessages); kafkaComponent.writeMessages(dummySensorType, dummyInputMessages);
@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(); }
); try { runner.start(); kafkaComponent.writeMessages(sensorType, inputMessages); KafkaProcessor<Map<String, List<JSONObject>>> kafkaProcessor = getKafkaProcessor(
Collections.singletonList(parserConfig), globalConfigWithValidation); try { runner.start(); kafkaComponent.writeMessages(sensorType, inputMessages); KafkaProcessor<Map<String, List<JSONObject>>> kafkaProcessor = getKafkaProcessor(
@Before public void setup() throws Exception { // a component that uploads the global configuration Map<String, Object> globals = new HashMap<>(); ConfigUploadComponent configUploader = new ConfigUploadComponent() .withGlobals(globals); // create zookeeper component properties = new Properties(); zkServer = getZKServerComponent(properties); // can only get the zookeeperUrl AFTER it has started zkServer.withPostStartCallback((zk) -> { zookeeperURL = zk.getConnectionString(); configUploader.withZookeeperURL(zookeeperURL); }); // start the integration test components runner = new ComponentRunner.Builder() .withComponent("zk", zkServer) .withComponent("config", configUploader) .build(); runner.start(); context = mock(InterpreterContext.class); }
runner.start(); fluxComponent.submitTopology();
.build(); try { runner.start(); kafkaComponent.writeMessages(sensorType, inputMessages); ProcessorResult<List<LookupKV<EnrichmentKey, EnrichmentValue>>> result =
runner.start(); while(!isLoaded.get()) { Thread.sleep(100);