问答详情
源自:5-3 StormAPI使用下

我的程序出现了NodeExistsException异常是怎么回事啊?

8447 [Thread-48-split-executor[19 19]] ERROR o.a.s.s.o.a.z.s.NIOServerCnxnFactory - Thread Thread[Thread-48-split-executor[19 19],5,main] died

java.lang.RuntimeException: org.apache.storm.shade.org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /errors/word-count-1-1461991133/split-last-error

at org.apache.storm.util$wrap_in_runtime.invoke(util.clj:54) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.zookeeper$create_node.invoke(zookeeper.clj:97) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.cluster_state.zookeeper_state_factory$_mkState$reify__12706.set_data(zookeeper_state_factory.clj:95) ~[storm-core-1.0.0.jar:1.0.0]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_95]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_95]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_95]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_95]

at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[clojure-1.7.0.jar:?]

at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[clojure-1.7.0.jar:?]

at org.apache.storm.cluster$mk_storm_cluster_state$reify__6436.report_error(cluster.clj:603) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.daemon.executor$throttled_report_error_fn$fn__7992.invoke(executor.clj:212) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.daemon.executor$mk_executor_data$fn__8046$fn__8047.invoke(executor.clj:266) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.util$async_loop$fn__554.invoke(util.clj:494) ~[storm-core-1.0.0.jar:1.0.0]

at clojure.lang.AFn.run(AFn.java:22) ~[clojure-1.7.0.jar:?]

at java.lang.Thread.run(Thread.java:745) [?:1.7.0_95]

Caused by: org.apache.storm.shade.org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /errors/word-count-1-1461991133/split-last-error

at org.apache.storm.shade.org.apache.zookeeper.KeeperException.create(KeeperException.java:119) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:721) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:704) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:108) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:701) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:477) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:467) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl$3.forPath(CreateBuilderImpl.java:260) ~[storm-core-1.0.0.jar:1.0.0]

at org.apache.storm.shade.org.apache.curator.framework.imps.CreateBuilderImpl$3.forPath(CreateBuilderImpl.java:214) ~[storm-core-1.0.0.jar:1.0.0]

at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_95]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_95]

at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[clojure-1.7.0.jar:?]

at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[clojure-1.7.0.jar:?]

at org.apache.storm.zookeeper$create_node.invoke(zookeeper.clj:96) ~[storm-core-1.0.0.jar:1.0.0]

... 13 more


提问者:子子在 2016-04-30 12:43

个回答

  • 慕粉3176096
    2016-05-03 10:03:54

    你storm的数据是不是已经存储在zookeeper的目录下了?你登陆到zk的storm目录下,删除你的目录,再试一下看看