简体   繁体   English

Apache Storm无法访问UI

[英]Apache storm can't access UI

I have apache-storm-1.1.0, try to get storm UI on localhost:8080 and have this: 我有apache-storm-1.1.0,尝试在localhost:8080上获取Storm UI,并具有以下内容:

org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [localhost]. org.apache.storm.utils.NimbusLeaderNotFoundException:从种子主机[localhost]中找不到领导者灵气。 Did you specify a valid list of nimbus hosts for config nimbus.seeds? 您是否为config nimbus.seeds指定了有效的nimbus主机列表? at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:111) 在org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:111)

Also can't kill storm topology from comand line,have the same error message Please help me, my storm.yaml: 也无法从命令行杀死风暴拓扑,有相同的错误消息请帮我,我的storm.yaml:

storm.zookeeper.servers:
 - "localhost"
storm.local.dir: "/home/igor/Downloads/apache-storm-1.1.0/bin/data"
nimbus.host: "localhost"
supervisor.slots.ports:
 - 6700
 - 6701
 - 6702
 - 6703
nimbus.seeds : ["localhost"]

Sounds like your nimbus server isn't running. 听起来您的nimbus服务器未运行。 Take a look at how to setup a storm cluster . 看一下如何设置风暴群集

From your master machine run the following to start nimbus: 在您的主机上运行以下命令以启动nimbus:

bin/storm nimbus

This usually happens when a leader election takes place in the nimbus and the nimbus host fails the election as it does not have the appropriate JARs of your running topology in its local directory. 这通常在以下情况发生:当在nimbus中进行领导者选举,并且nimbus主机因其本地目录中没有正在运行的拓扑的适当JAR而导致选举失败。

The only fix I was able to find for this was to either remove the storm related data from zookeeper or reinstall the zookeeper altogether. 我能够找到的唯一解决方法是从zookeeper中删除与风暴相关的数据,或者完全重新安装Zookeeper。

i think you should remove 我认为你应该删除

nimbus.seeds : ["localhost"]

because in earlier version of storm nimbus.host was been used but in version 1 on-wards it been changes to nimbus.seeds . 因为在nimbus.host早期版本中使用过nimbus.host ,但是在版本1以后的版本中,已更改为nimbus.seeds

for me nimbus.host worked well. 对我来说nimbus.host运作良好。

so use either of them. 因此,使用其中任何一个。 i will suggest to go with nimbus.host because it worked well for me. 我建议使用nimbus.host因为它对我来说效果很好。

below is my configuration for storm.yaml . 下面是我对storm.yaml配置。

storm.zookeeper.servers:
 - "localhost"
storm.local.dir: "xxx/data"
nimbus.host: "localhost"
supervisor.slots.ports:
 - 6700
 - 6701
 - 6702
 - 6703

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

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