Apache storm 在何处更改SleepSpoutWaitStrategTime的值
我正在使用风暴。。。我想将topology.sleep.spout.wait.strategy.time.ms的时间从1毫秒(默认值)增加到1秒。但我不知道这个在哪里。我有一个config类,它的定义如下Apache storm 在何处更改SleepSpoutWaitStrategTime的值,apache-storm,Apache Storm,我正在使用风暴。。。我想将topology.sleep.spout.wait.strategy.time.ms的时间从1毫秒(默认值)增加到1秒。但我不知道这个在哪里。我有一个config类,它的定义如下 public static final String TOPOLOGY_SLEEP_SPOUT_WAIT_STRATEGY_TIME_MS="topology.sleep.spout.wait.strategy.time.ms"; 我想在类为backtype.storm.config 我应
public static final String TOPOLOGY_SLEEP_SPOUT_WAIT_STRATEGY_TIME_MS="topology.sleep.spout.wait.strategy.time.ms";
我想在类为backtype.storm.config
我应该使用什么参数名称?是不是emptyEmit
编辑:
我搜索了网络,并指定值将出现在default.yaml
中,但我在Eclipse中找不到这样的文件
有人能帮忙吗?您可以在
storm.yaml
文件中指定它
default.yaml
只是一个默认的storm.yaml
文件,用于在不覆盖默认值时提供默认值。。。。
conf.put(Config.TOPOLOGY\u SLEEP\u SPOUT\u WAIT\u STRATEGY\u TIME\u MS,1000);
...
submitTopology(“xyz”,conf,buildTopology()) change
topology.sleep.spout.wait.strategy.time.ms
属性,位于$storm\u ROOT\u DIR/conf
目录下的storm的default.yaml文件中
但是我在Eclipse中找不到这样的文件
它应该包括在风暴的罐子里。。。例如,如果您使用的是0.9.0-wip21
发行版,则应在“storm-core-0.9.0-wip21.jar”下找到default.yaml文件