Source:
public static void main(String[] args) throws Exception { Config config = new Config(); if (args.length <= 1) { String providedValidationPropertiesFile = ""; String providedPropertyFile = ""; if (args.length == 1) providedPropertyFile = args[0]; else if (args.length == 2) { providedPropertyFile = args[0]; providedValidationPropertiesFile = args[1]; } ValidationTopology validationTopology = new ValidationTopology(TOPOLOGY_PROPERTIES_FILE, providedPropertyFile, VALIDATION_PROPERTIES_FILE, providedValidationPropertiesFile); String topologyName = topologyProperties.getProperty(TopologyPropertyKeys.TOPOLOGY_NAME); String kafkaTopic = topologyName; String ecloudMcsAddress = topologyProperties.getProperty(TopologyPropertyKeys.MCS_URL); StormTopology stormTopology = validationTopology.buildTopology(kafkaTopic, ecloudMcsAddress); config.setNumWorkers(Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.WORKER_COUNT))); config.setMaxTaskParallelism( Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.MAX_TASK_PARALLELISM))); config.put(Config.NIMBUS_THRIFT_PORT, Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.THRIFT_PORT))); config.put(topologyProperties.getProperty(TopologyPropertyKeys.INPUT_ZOOKEEPER_ADDRESS), topologyProperties.getProperty(TopologyPropertyKeys.INPUT_ZOOKEEPER_PORT)); config.put(Config.NIMBUS_SEEDS, Arrays.asList(new String[]{topologyProperties.getProperty(TopologyPropertyKeys.NIMBUS_SEEDS)})); config.put(Config.STORM_ZOOKEEPER_SERVERS, Arrays.asList(topologyProperties.getProperty(TopologyPropertyKeys.STORM_ZOOKEEPER_ADDRESS))); StormSubmitter.submitTopology(topologyName, config, stormTopology); } }

Target:
public static void main(String[] args) throws Exception { Config config = new Config(); if (args.length <= 2) { String providedValidationPropertiesFile = ""; String providedPropertyFile = ""; if (args.length == 1) providedPropertyFile = args[0]; else if (args.length == 2) { providedPropertyFile = args[0]; providedValidationPropertiesFile = args[1]; } ValidationTopology validationTopology = new ValidationTopology(TOPOLOGY_PROPERTIES_FILE, providedPropertyFile, VALIDATION_PROPERTIES_FILE, providedValidationPropertiesFile); String topologyName = topologyProperties.getProperty(TopologyPropertyKeys.TOPOLOGY_NAME); String kafkaTopic = topologyName; String ecloudMcsAddress = topologyProperties.getProperty(TopologyPropertyKeys.MCS_URL); StormTopology stormTopology = validationTopology.buildTopology(kafkaTopic, ecloudMcsAddress); config.setNumWorkers(Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.WORKER_COUNT))); config.setMaxTaskParallelism( Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.MAX_TASK_PARALLELISM))); config.put(Config.NIMBUS_THRIFT_PORT, Integer.parseInt(topologyProperties.getProperty(TopologyPropertyKeys.THRIFT_PORT))); config.put(topologyProperties.getProperty(TopologyPropertyKeys.INPUT_ZOOKEEPER_ADDRESS), topologyProperties.getProperty(TopologyPropertyKeys.INPUT_ZOOKEEPER_PORT)); config.put(Config.NIMBUS_SEEDS, Arrays.asList(new String[]{topologyProperties.getProperty(TopologyPropertyKeys.NIMBUS_SEEDS)})); config.put(Config.STORM_ZOOKEEPER_SERVERS, Arrays.asList(topologyProperties.getProperty(TopologyPropertyKeys.STORM_ZOOKEEPER_ADDRESS))); StormSubmitter.submitTopology(topologyName, config, stormTopology); } }