Closed RedBlackTreei closed 7 years ago
你host里面配置了本机ip映射了没? hostname -i
配置了,执行hostname -i结果如下: 127.0.0.1
你没详细看官方文档吧,在/ect/hosts里面加上这个 10.10.10.185 localhost
谢谢提醒,我是按照安装说明来的,里面没提到这点。 能发下文档地址吗? https://github.com/alibaba/jstorm/wiki/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85
@RedBlackTreei 我看了github上的确实没说清楚,我看的是jstorm的官网,那个里面说的详细些: http://www.jstorm.io/QuickStart_cn/Deploy/Standalone.html
具体如下: [ERROR 2017-03-30 19:07:58 c.a.j.s.FollowerRunnable:85 main] get nimbus host error! java.lang.Exception: the hostname which Nimbus get is localhost at com.alibaba.jstorm.schedule.FollowerRunnable.(FollowerRunnable.java:82) ~[jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.initFollowerThread(NimbusServer.java:275) [jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.launchServer(NimbusServer.java:121) [jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.main(NimbusServer.java:95) [jstorm-core-2.1.1.jar:na]
[ERROR 2017-03-30 19:07:58 c.a.j.d.n.NimbusServer:137 main] Fail to run nimbus
java.lang.RuntimeException: java.lang.Exception: the hostname which Nimbus get is localhost
at com.alibaba.jstorm.schedule.FollowerRunnable.(FollowerRunnable.java:86) ~[jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.initFollowerThread(NimbusServer.java:275) [jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.launchServer(NimbusServer.java:121) [jstorm-core-2.1.1.jar:na]
at com.alibaba.jstorm.daemon.nimbus.NimbusServer.main(NimbusServer.java:95) [jstorm-core-2.1.1.jar:na]
Caused by: java.lang.Exception: the hostname which Nimbus get is localhost
at com.alibaba.jstorm.schedule.FollowerRunnable.(FollowerRunnable.java:82) ~[jstorm-core-2.1.1.jar:na]
... 3 common frames omitted
storm.yaml配置如下: storm.zookeeper.servers:
其中10.10.10.185是我本地ip