从intellij nimbus错误运行风暴

时间:2016-12-03 16:32:15

标签: apache-storm nimbus

我正在学习风暴,我做了一个简单的项目。我记得运行它,并且它可以工作,我记得,但现在当我尝试从intellij运行它我得到一个运行时错误,有人可以帮我解决问题吗?错误消息:

25107 [main] ERROR o.a.s.d.nimbus - Error on initialization of server service-handler
java.lang.RuntimeException: Something wrong with network/dns config, host cant figure out its name
    at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:64) ~[storm-core-1.0.2.jar:1.0.2]
    at org.apache.storm.daemon.nimbus$nimbus_data.invoke(nimbus.clj:169) ~[storm-core-1.0.2.jar:1.0.2]
    at org.apache.storm.daemon.nimbus$fn__7166$exec_fn__2466__auto____7167.invoke(nimbus.clj:1349) ~[storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.AFn.applyToHelper(AFn.java:156) ~[clojure-1.7.0.jar:?]
    at clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.7.0.jar:?]
    at clojure.core$apply.invoke(core.clj:630) ~[clojure-1.7.0.jar:?]
    at org.apache.storm.daemon.nimbus$fn__7166$service_handler__7410.doInvoke(nimbus.clj:1346) [storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0.jar:?]
    at org.apache.storm.testing$mk_local_storm_cluster.doInvoke(testing.clj:151) [storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0.jar:?]
    at org.apache.storm.LocalCluster$_init.invoke(LocalCluster.clj:31) [storm-core-1.0.2.jar:1.0.2]
    at org.apache.storm.LocalCluster.<init>(Unknown Source) [storm-core-1.0.2.jar:1.0.2]
    at stormtesting.App.main(App.java:20) [classes/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?]
Caused by: java.net.UnknownHostException: Manningers-MacBook-Pro-2.local: Manningers-MacBook-Pro-2.local: nodename nor servname provided, or not known
    at java.net.InetAddress.getLocalHost(InetAddress.java:1475) ~[?:1.7.0_79]
    at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:54) ~[storm-core-1.0.2.jar:1.0.2]
    ... 17 more
Caused by: java.net.UnknownHostException: Manningers-MacBook-Pro-2.local: nodename nor servname provided, or not known
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[?:1.7.0_79]
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) ~[?:1.7.0_79]
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1295) ~[?:1.7.0_79]
    at java.net.InetAddress.getLocalHost(InetAddress.java:1471) ~[?:1.7.0_79]
    at org.apache.storm.nimbus.NimbusInfo.fromConf(NimbusInfo.java:54) ~[storm-core-1.0.2.jar:1.0.2]
    ... 17 more
25131 [main] ERROR o.a.s.util - Halting process: ("Error on initialization")
java.lang.RuntimeException: ("Error on initialization")
    at org.apache.storm.util$exit_process_BANG_.doInvoke(util.clj:341) [storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.RestFn.invoke(RestFn.java:423) [clojure-1.7.0.jar:?]
    at org.apache.storm.daemon.nimbus$fn__7166$service_handler__7410.doInvoke(nimbus.clj:1346) [storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0.jar:?]
    at org.apache.storm.testing$mk_local_storm_cluster.doInvoke(testing.clj:151) [storm-core-1.0.2.jar:1.0.2]
    at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0.jar:?]
    at org.apache.storm.LocalCluster$_init.invoke(LocalCluster.clj:31) [storm-core-1.0.2.jar:1.0.2]
    at org.apache.storm.LocalCluster.<init>(Unknown Source) [storm-core-1.0.2.jar:1.0.2]
    at stormtesting.App.main(App.java:20) [classes/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?]

我只想在本地运行它,直到我开发拓扑。或者这是一个糟糕的方法?

1 个答案:

答案 0 :(得分:1)

它无法解决Manningers-MacBook-Pro-2.local。在/ etc / hosts中添加它 127.0.0.1 Manningers-MacBook-Pro-2.local