简体   繁体   English

Apache Storm配置

[英]Apache storm configuration

I am facing an issue with setting isolation scheduler for a topology. 我在为拓扑设置隔离调度程序时遇到问题。 Basically I am trying to set number of machines to one topology as below. 基本上,我正在尝试将计算机数量设置为一种拓扑,如下所示。

Map<String, Number> topologyToMachines = new HashMap<String, Number>();
topologyToMachines.put(TOPOLOGY_NAME, 1);
config.put(Config.STORM_SCHEDULER, "backtype.storm.scheduler.IsolationScheduler");
config.put(Config.ISOLATION_SCHEDULER_MACHINES, topologyToMachines);

If I set like above, nimbus is not dedicating a node for this topology. 如果我像上面那样设置,nimbus不会为该拓扑专用节点。 I have set two workers for this topology. 我为此拓扑设置了两个工作器。 These two workers are assigned to two nodes instead of only one node. 这两个工作程序分配给两个节点,而不是一个节点。

But If I change configuration through storm.yaml in nimbus node and submit the same topology, only one node is assigned for this topology. 但是,如果我通过nimbus节点中的storm.yaml更改配置并提交相同的拓扑,则仅为该拓扑分配一个节点。

Is this a bug in Storm? 这是Storm中的错误吗? I am using 0.9.1 version. 我正在使用0.9.1版本。

This behaviour seems to be normal. 这种现象似乎是正常的。 Extract Storm 0.8.2 release notes when Isolation Settings were added. 添加了“隔离设置”后,提取Storm 0.8.2 发行说明

Any topologies submitted to the cluster not listed there will not be isolated. 提交给群集的未列出的任何拓扑都不会被隔离。 Note that there is no way for a user of Storm to affect their isolation settings – this is only allowed by the administrator of the cluster (this is very much intentional). 请注意,Storm用户无法影响其隔离设置,只有集群管理员才能这样做(这是非常有意的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM