alibaba / jstorm

Enterprise Stream Process Engine
http://jstorm.io
Apache License 2.0
3.91k stars 1.81k forks source link

在nimbus 节点上执行 “nohup jstorm nimbus &”,时报错 #471

Closed RedBlackTreei closed 7 years ago

RedBlackTreei commented 7 years ago

具体如下: [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

sjq597 commented 7 years ago

你host里面配置了本机ip映射了没? hostname -i

RedBlackTreei commented 7 years ago

配置了,执行hostname -i结果如下: 127.0.0.1

sjq597 commented 7 years ago

你没详细看官方文档吧,在/ect/hosts里面加上这个 10.10.10.185 localhost

RedBlackTreei commented 7 years ago

谢谢提醒,我是按照安装说明来的,里面没提到这点。 能发下文档地址吗? https://github.com/alibaba/jstorm/wiki/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85

sjq597 commented 7 years ago

@RedBlackTreei 我看了github上的确实没说清楚,我看的是jstorm的官网,那个里面说的详细些: http://www.jstorm.io/QuickStart_cn/Deploy/Standalone.html