This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(':proj') { | |
apply plugin: 'application' | |
apply plugin: 'shadow' | |
dependencies { | |
compile("storm:storm:${storm_version}") | |
compile("storm:storm-kafka:${storm_kafka_version}") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private submitTopology(topologies) { | |
Config conf = new Config() | |
conf.debug = DEBUG | |
conf.put(Config.TOPOLOGY_MAX_SPOUT_PENDING, MAX_SPOUTS_PENDING) | |
conf.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, MAX_TASK_PARALLELISM) | |
conf.put(Config.TOPOLOGY_WORKERS, NUM_WORKERS) | |
if (LOCAL) { | |
LocalCluster localCluster = new LocalCluster() | |
topologies.each { name, topology -> | |
log.info "Submitting the local cluster for the topology ${name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
something: true | |
} |