_helixMirrorMakerManager.start(); _validationManager.start(); if (_autoTopicWhitelistingManager != null) {
controllerConf.setControllerMode("customized"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setControllerMode("customized"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setAutoRebalanceDelayInSeconds("0"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); LOGGER.info("Trying to add topic testTopic0"); helixMirrorMakerManager.addTopicToMirrorMaker("testTopic0", 8);
controllerConf.setAutoRebalanceDelayInSeconds("0"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); LOGGER.info("Trying to add topic testTopic0"); helixMirrorMakerManager.addTopicToMirrorMaker("testTopic0", 8);
controllerConf.setAutoRebalanceDelayInSeconds("1"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setAutoRebalanceDelayInSeconds("1"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
helixMirrorMakerManager.start();
@BeforeTest public void setup() { LOGGER.info("Trying to setup"); ZkStarter.startLocalZkServer(); kafkaStarter = KafkaStarterUtils.startServer(KafkaStarterUtils.DEFAULT_KAFKA_PORT, KafkaStarterUtils.DEFAULT_BROKER_ID, KafkaStarterUtils.DEFAULT_ZK_STR, KafkaStarterUtils.getDefaultKafkaConfiguration()); // Create Kafka topic KafkaStarterUtils.createTopic("testTopic0", KafkaStarterUtils.DEFAULT_ZK_STR); try { Thread.sleep(2000); } catch (Exception e) { } kafkaBrokerTopicObserver = new KafkaBrokerTopicObserver("broker0", KafkaStarterUtils.DEFAULT_ZK_STR); ControllerConf controllerConf = new ControllerConf(); controllerConf.setControllerPort("9090"); controllerConf.setHelixClusterName("TestAutoTopicWhitelistingManager"); controllerConf.setInstanceId("controller-0"); controllerConf.setControllerMode("customized"); controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); controllerConf.setBackUpToGit("false"); controllerConf.setAutoRebalanceDelayInSeconds("1"); helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); sourceKafkaClusterValidationManager = new SourceKafkaClusterValidationManager(kafkaBrokerTopicObserver, helixMirrorMakerManager); sourceKafkaClusterValidationManager.start(); }
helixMirrorMakerManager.start(); autoTopicWhitelistingManager = new AutoTopicWhitelistingManager(kafkaBrokerTopicObserver, kafkaBrokerTopicObserver, helixMirrorMakerManager, "", 1);
_helixMirrorMakerManager.start(); _validationManager.start(); if (_autoTopicWhitelistingManager != null) {
controllerConf.setControllerMode("customized"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setAutoRebalanceWorkloadRatioThreshold("0"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start();
controllerConf.setAutoRebalanceWorkloadRatioThreshold("0"); HelixMirrorMakerManager helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); LOGGER.info("Trying to add topic testTopic0"); helixMirrorMakerManager.addTopicToMirrorMaker("testTopic0", 8);
helixMirrorMakerManager.start();
@BeforeTest public void setup() { LOGGER.info("Trying to setup"); ZkStarter.startLocalZkServer(); kafkaStarter = KafkaStarterUtils.startServer(KafkaStarterUtils.DEFAULT_KAFKA_PORT, KafkaStarterUtils.DEFAULT_BROKER_ID, KafkaStarterUtils.DEFAULT_ZK_STR, KafkaStarterUtils.getDefaultKafkaConfiguration()); try { Thread.sleep(2000); } catch (Exception e) { } kafkaBrokerTopicObserver = new KafkaBrokerTopicObserver("broker0", KafkaStarterUtils.DEFAULT_ZK_STR, 1); ControllerConf controllerConf = new ControllerConf(); controllerConf.setControllerPort("9090"); controllerConf.setHelixClusterName("TestAutoTopicWhitelistingManager"); controllerConf.setDeploymentName("TestAutoTopicWhitelistingManagerDeployment"); controllerConf.setInstanceId("controller-0"); controllerConf.setControllerMode("customized"); controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); controllerConf.setBackUpToGit("false"); controllerConf.setAutoRebalanceDelayInSeconds("1"); helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); sourceKafkaClusterValidationManager = new SourceKafkaClusterValidationManager(kafkaBrokerTopicObserver, helixMirrorMakerManager); sourceKafkaClusterValidationManager.start(); }
@BeforeTest public void setup() { LOGGER.info("Trying to setup"); ZkStarter.startLocalZkServer(); kafkaStarter = KafkaStarterUtils.startServer(KafkaStarterUtils.DEFAULT_KAFKA_PORT, KafkaStarterUtils.DEFAULT_BROKER_ID, KafkaStarterUtils.DEFAULT_ZK_STR, KafkaStarterUtils.getDefaultKafkaConfiguration()); try { Thread.sleep(2000); } catch (Exception e) { } kafkaBrokerTopicObserver = new KafkaBrokerTopicObserver("broker0", KafkaStarterUtils.DEFAULT_ZK_STR, 1); ControllerConf controllerConf = new ControllerConf(); controllerConf.setControllerPort("9090"); controllerConf.setHelixClusterName("TestAutoTopicWhitelistingManager"); controllerConf.setDeploymentName("TestAutoTopicWhitelistingDeployment"); controllerConf.setInstanceId("controller-0"); controllerConf.setControllerMode("customized"); controllerConf.setZkStr(ZkStarter.DEFAULT_ZK_STR); controllerConf.setBackUpToGit("false"); controllerConf.setAutoRebalanceDelayInSeconds("1"); helixMirrorMakerManager = new HelixMirrorMakerManager(controllerConf); helixMirrorMakerManager.start(); autoTopicWhitelistingManager = new AutoTopicWhitelistingManager(kafkaBrokerTopicObserver, kafkaBrokerTopicObserver, helixMirrorMakerManager, "", 1); autoTopicWhitelistingManager.start(); }