下面是我的配置文件:
storm.zookeeper.servers:
- "10.13.0.91"
- "10.13.0.93"
- "10.13.0.104"
nimbus.seeds: ["10.13.0.91", "10.13.0.93", "10.13.0.104"]
storm.local.dir: "/data1/storm/state"
storm.log.dir: "/data1/storm/log"
nimbus.childopts: "-Xmx2048m -XX:MaxPermSize=1024m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:/data1/storm/log/gc-storm-nimbus.log"
worker.childopts: "-Xmx2048m -XX:MaxPermSize=1024m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:/data1/storm/log/gc-storm-worker-%ID%.log"
supervisor.childopts: "-Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:/data1/storm/log/gc-storm-supervisor.log"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
client.jartransformer.class: "org.apache.storm.hack.StormShadeTransformer"
当我跑的时候 bin/storm nimbus
在10.13.0.91,我可以看到nimbus进程绑定到10.13.0.91。
但是,当我使用相同的配置运行相同的命令时
tcp 0 0 :::6627 :::* LISTEN 54981/java
tcp 0 0 ::ffff:127.0.0.1:6627 ::ffff:127.0.0.1:34507 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:46929 ::ffff:10.13.0.91:6627 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:53760 ::ffff:10.13.0.93:2181 ESTABLISHED 54981/java
tcp 0 0 ::ffff:127.0.0.1:34495 ::ffff:127.0.0.1:6627 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:46944 ::ffff:10.13.0.91:6627 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:20261 ::ffff:10.13.0.91:2181 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:20175 ::ffff:10.13.0.91:2181 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:26995 ::ffff:10.13.0.104:2181 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:46949 ::ffff:10.13.0.91:6627 ESTABLISHED 54981/java
tcp 0 0 ::ffff:10.13.0.93:26994 ::ffff:10.13.0.104:2181 ESTABLISHED 54981/java
tcp 0 0 ::ffff:127.0.0.1:6627 ::ffff:127.0.0.1:34495 ESTABLISHED 54981/java
tcp 0 0 ::ffff:127.0.0.1:34507 ::ffff:127.0.0.1:6627 ESTABLISHED 54981/java
在google上搜索了很长时间,但没有任何帮助。以前有人遇到过同样的问题吗?
1条答案
按热度按时间fhg3lkii1#
在storm.yaml中添加此行
把你的主机名放在/etc/hosts中,然后重启storm nimbus