分享

jstorm运行失败

homeryan 发表于 2016-2-19 21:00:36 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 17616
本帖最后由 homeryan 于 2016-2-19 21:03 编辑

本人storm初学者,用阿里的jstorm。
zookeeper能正常启动运行,并能用zkCli.sh联上。
但jstorm nimbus报了错, 如下:

[mw_shl_code=shell,true]......
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:155 main] pending upload metrics: 0
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:379 main] adding __nimbus__ to metric context.
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:386 main] adding __cluster__ to metric context.
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:201 main] metric uploader class:com.alibaba.jstorm.daemon.nimbus.metric.uploader.DefaultMetricUploader
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:212 main] Successfully init com.alibaba.jstorm.daemon.nimbus.metric.uploader.DefaultMetricUploader
[WARN 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:220 main] use default metric query client class.
[INFO 2016-02-19 20:57:35 c.a.j.d.n.TopologyMetricsRunnable:232 main] init topology metric runnable done.
[ERROR 2016-02-19 20:57:35 c.a.j.s.FollowerRunnable:89 main] get nimbus host error!
java.lang.Exception: the hostname which Nimbus get is localhost
        at com.alibaba.jstorm.schedule.FollowerRunnable.<init>(FollowerRunnable.java:86) ~[jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.initFollowerThread(NimbusServer.java:268) [jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.launchServer(NimbusServer.java:117) [jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.main(NimbusServer.java:91) [jstorm-core-2.1.0.jar:na]
[ERROR 2016-02-19 20:57:35 c.a.j.d.n.NimbusServer:130 main] Fail to run nimbus
java.lang.RuntimeException: java.lang.Exception: the hostname which Nimbus get is localhost
        at com.alibaba.jstorm.schedule.FollowerRunnable.<init>(FollowerRunnable.java:90) ~[jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.initFollowerThread(NimbusServer.java:268) [jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.launchServer(NimbusServer.java:117) [jstorm-core-2.1.0.jar:na]
        at com.alibaba.jstorm.daemon.nimbus.NimbusServer.main(NimbusServer.java:91) [jstorm-core-2.1.0.jar:na]
Caused by: java.lang.Exception: the hostname which Nimbus get is localhost
        at com.alibaba.jstorm.schedule.FollowerRunnable.<init>(FollowerRunnable.java:86) ~[jstorm-core-2.1.0.jar:na]
        ... 3 common frames omitted
[INFO 2016-02-19 20:57:35 c.a.j.d.n.NimbusServer:290 main] Begin to shutdown nimbus
......
[/mw_shl_code]

jstorm supervisor结果类似,这问题如何解决?

已有(3)人评论

跳转到指定楼层
atsky123 发表于 2016-2-20 08:28:29
nimbus host错误,楼主检测下nimbus 的hosts及相关配置
回复

使用道具 举报

homeryan 发表于 2016-2-20 17:32:28
storm.yaml文件中的相关项是:

[mw_shl_code=bash,true]nimbus.host: "192.168.1.121"[/mw_shl_code]

这么没错吧?
回复

使用道具 举报

atsky123 发表于 2016-2-20 22:18:29
这里可能没有错,但是获取的却是localhost,楼主看看其它地方

the hostname which Nimbus get is localhost
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条