storm使用过程中出现的错误:Caused by: java.net.UnknownHostException: ip: ip: 未知的名称或服务
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.library.path=2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.io.tmpdir=/tm2018-07-10 10:27
·
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.library.path=
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.io.tmpdir=/tm
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.compiler=<NA>
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.name=Linux
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.arch=amd64
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.version=2.6.32-
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.name=root
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.home=/root
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.dir=/home/apa
2018-07-10 10:27:27.517 o.a.s.s.o.a.z.ZooKeeper [INFO] Initiating client connection, connectapache.curator.ConnectionState@684b31de
2018-07-10 10:27:27.562 o.a.s.s.o.a.z.ClientCnxn [INFO] Opening socket connection to server
2018-07-10 10:27:27.707 o.a.s.s.o.a.z.ClientCnxn [INFO] Socket connection established to 192
2018-07-10 10:27:27.737 o.a.s.s.o.a.z.ClientCnxn [INFO] Session establishment complete on se
2018-07-10 10:27:27.742 o.a.s.s.o.a.c.f.s.ConnectionStateManager [INFO] State change: CONNEC
2018-07-10 10:27:27.744 o.a.s.zookeeper [INFO] Zookeeper state update: :connected:none
2018-07-10 10:27:32.626 o.a.s.d.nimbus [ERROR] Error on initialization of server service-han
java.lang.RuntimeException: Something wrong with network/dns config, host cant figure out it
at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:64)
at org.apache.storm.zookeeper$zk_leader_elector.invoke(zookeeper.clj:261)
at org.apache.storm.daemon.nimbus$nimbus_data.invoke(nimbus.clj:197)
at org.apache.storm.daemon.nimbus$fn__7337$exec_fn__1826__auto____7338.invoke(nimbus
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invoke(core.clj:630)
at org.apache.storm.daemon.nimbus$fn__7337$service_handler__7581.doInvoke(nimbus.clj
at clojure.lang.RestFn.invoke(RestFn.java:421)
at org.apache.storm.daemon.nimbus$launch_server_BANG_.invoke(nimbus.clj:2206)
at org.apache.storm.daemon.nimbus$_launch.invoke(nimbus.clj:2239)
at org.apache.storm.daemon.nimbus$_main.invoke(nimbus.clj:2262)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.AFn.applyTo(AFn.java:144)
at org.apache.storm.daemon.nimbus.main(Unknown Source)
Caused by: java.net.UnknownHostException: ip: ip: 未知的名称或服务
at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:54)
... 14 more
Caused by: java.net.UnknownHostException: ip: 未知的名称或服务
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.io.tmpdir=/tm
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:java.compiler=<NA>
2018-07-10 10:27:27.513 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.name=Linux
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.arch=amd64
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:os.version=2.6.32-
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.name=root
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.home=/root
2018-07-10 10:27:27.516 o.a.s.s.o.a.z.ZooKeeper [INFO] Client environment:user.dir=/home/apa
2018-07-10 10:27:27.517 o.a.s.s.o.a.z.ZooKeeper [INFO] Initiating client connection, connectapache.curator.ConnectionState@684b31de
2018-07-10 10:27:27.562 o.a.s.s.o.a.z.ClientCnxn [INFO] Opening socket connection to server
2018-07-10 10:27:27.707 o.a.s.s.o.a.z.ClientCnxn [INFO] Socket connection established to 192
2018-07-10 10:27:27.737 o.a.s.s.o.a.z.ClientCnxn [INFO] Session establishment complete on se
2018-07-10 10:27:27.742 o.a.s.s.o.a.c.f.s.ConnectionStateManager [INFO] State change: CONNEC
2018-07-10 10:27:27.744 o.a.s.zookeeper [INFO] Zookeeper state update: :connected:none
2018-07-10 10:27:32.626 o.a.s.d.nimbus [ERROR] Error on initialization of server service-han
java.lang.RuntimeException: Something wrong with network/dns config, host cant figure out it
at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:64)
at org.apache.storm.zookeeper$zk_leader_elector.invoke(zookeeper.clj:261)
at org.apache.storm.daemon.nimbus$nimbus_data.invoke(nimbus.clj:197)
at org.apache.storm.daemon.nimbus$fn__7337$exec_fn__1826__auto____7338.invoke(nimbus
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invoke(core.clj:630)
at org.apache.storm.daemon.nimbus$fn__7337$service_handler__7581.doInvoke(nimbus.clj
at clojure.lang.RestFn.invoke(RestFn.java:421)
at org.apache.storm.daemon.nimbus$launch_server_BANG_.invoke(nimbus.clj:2206)
at org.apache.storm.daemon.nimbus$_launch.invoke(nimbus.clj:2239)
at org.apache.storm.daemon.nimbus$_main.invoke(nimbus.clj:2262)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.AFn.applyTo(AFn.java:144)
at org.apache.storm.daemon.nimbus.main(Unknown Source)
Caused by: java.net.UnknownHostException: ip: ip: 未知的名称或服务
at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:54)
... 14 more
Caused by: java.net.UnknownHostException: ip: 未知的名称或服务
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
... 15 more
出现错误原因:命令行输入:》 hostname 显示为ip.. 并不是storm配置文件中的ip .
修改错误:
》 vim /etc/hosts
192.168.1.25 kafka-master
》 vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=kafka-master
若确实是如此,hostname仍然显示为ip 。则重启linux系统。。
》reboot
查看左边目录
[root@kafka-master home]#
显示为设置的主机名.则问题解决
更多推荐
已为社区贡献1条内容
所有评论(0)