jstorm启动supervior进程获取主机为localhost报错

错误内容如下:截图如下:

saging.netty.socket.backlog=500, worker.metric.report.frequency.secs=60, topology.alimonitor.metrics.post=false, supervisor.worker.shutdown.sleep.secs=1, process.launcher.sleep.seconds=20}
[INFO 2017-03-29 21:12:59 b.s.u.StormBoundedExponentialBackoffRetry:44 main] The baseSleepTimeMs [1000] the maxSleepTimeMs [30000] the maxRetries [20]
[INFO 2017-03-29 21:13:00 c.a.j.c.DefaultWatcherCallBack:40 main-EventThread] Zookeeper state update::connected,:none,null
[INFO 2017-03-29 21:13:01 b.s.u.StormBoundedExponentialBackoffRetry:44 main] The baseSleepTimeMs [1000] the maxSleepTimeMs [30000] the maxRetries [20]
[INFO 2017-03-29 21:13:01 c.a.j.c.DistributedClusterState:86 main-EventThread] Received event SyncConnected:None:null
[ERROR 2017-03-29 21:13:01 c.a.j.d.s.Heartbeat:117 main] get supervisor host error!
java.lang.Exception: the hostname which  supervisor get is localhost
    at com.alibaba.jstorm.daemon.supervisor.Heartbeat.initSupervisorInfo(Heartbeat.java:113) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Heartbeat.(Heartbeat.java:99) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.mkSupervisor(Supervisor.java:123) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.run(Supervisor.java:201) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.main(Supervisor.java:237) [jstorm-core-2.1.1.jar:na]
[ERROR 2017-03-29 21:13:01 c.a.j.d.s.Supervisor:218 main] Fail to run supervisor
java.lang.RuntimeException: java.lang.Exception: the hostname which  supervisor get is localhost
    at com.alibaba.jstorm.daemon.supervisor.Heartbeat.initSupervisorInfo(Heartbeat.java:118) ~[jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Heartbeat.(Heartbeat.java:99) ~[jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.mkSupervisor(Supervisor.java:123) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.run(Supervisor.java:201) [jstorm-core-2.1.1.jar:na]
    at com.alibaba.jstorm.daemon.supervisor.Supervisor.main(Supervisor.java:237) [jstorm-core-2.1.1.jar:na]
Caused by: java.lang.Exception: the hostname which  supervisor get is localhost
    at com.alibaba.jstorm.daemon.supervisor.Heartbeat.initSupervisorInfo(Heartbeat.java:113) ~[jstorm-core-2.1.1.jar:na]
    ... 4 common frames omitted
jstorm启动supervior进程获取主机为localhost报错_第1张图片

解决方法:
在/etc/hosts中配置的第一行去掉即可

Paste_Image.png

REF
参考

你可能感兴趣的:(jstorm启动supervior进程获取主机为localhost报错)