java - Error on initialization of server mk-worker -
i trying execute wordcount example using storm-0.8.1 , zookeeper-3.3.3 in local mode using maven. but, everytime run command getting following error:
mvn exec:java -dexec.mainclass="com.test.newpackage.topologymain" dexec.args="resource/words.txt
"
i searched , found earlier using zookeeper 3.4.5. so, changed zookeeper 3.3.3. still not able execute. if wants reference of code here link
info com.netflix.curator.framework.imps.curatorframeworkimpl - starting 3706 [nioservercxn.factory:0.0.0.0/0.0.0.0:2001] warn org.apache.zookeeper.server.nioservercnxn - endofstreamexception: unable read additional data client sessionid 0x1401598b305000a, client has closed socket 3857 [thread-6] error backtype.storm.daemon.worker - error on initialization of server mk-worker java.lang.illegalargumentexception: not find component common null @ backtype.storm.utils.thrifttopologyutils.getcomponentcommon(thrifttopologyutils.java:39) @ backtype.storm.task.generaltopologycontext.getcomponentcommon(generaltopologycontext.java:163) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ clojure.lang.reflector.invokematchingmethod(reflector.java:92) @ clojure.lang.reflector.invokeinstancemethod(reflector.java:30) @ backtype.storm.daemon.executor$normalized_component_conf.invoke(executor.clj:136) @ backtype.storm.daemon.executor$executor_data.invoke(executor.clj:159) @ backtype.storm.daemon.executor$mk_executor.invoke(executor.clj:233) @ backtype.storm.daemon.worker$fn__4324$exec_fn__1207__auto____4325$iter__4330__4334$fn__4335.invoke(worker.clj:353) @ clojure.lang.lazyseq.sval(lazyseq.java:42) @ clojure.lang.lazyseq.seq(lazyseq.java:60) @ clojure.lang.rt.seq(rt.java:466) @ clojure.core$seq.invoke(core.clj:133) @ clojure.core$dorun.invoke(core.clj:2723) @ clojure.core$doall.invoke(core.clj:2739) @ backtype.storm.daemon.worker$fn__4324$exec_fn__1207__auto____4325.invoke(worker.clj:353) @ clojure.lang.afn.applytohelper(afn.java:185) @ clojure.lang.afn.applyto(afn.java:151) @ clojure.core$apply.invoke(core.clj:600) @ backtype.storm.daemon.worker$fn__4324$mk_worker__4380.doinvoke(worker.clj:322) @ clojure.lang.restfn.invoke(restfn.java:512) @ backtype.storm.daemon.supervisor$fn__4783.invoke(supervisor.clj:457) @ clojure.lang.multifn.invoke(multifn.java:177) @ backtype.storm.daemon.supervisor$sync_processes$iter__4660__4664$fn__4665.invoke(supervisor.clj:247) @ clojure.lang.lazyseq.sval(lazyseq.java:42) @ clojure.lang.lazyseq.seq(lazyseq.java:60) @ clojure.lang.rt.seq(rt.java:466) @ clojure.core$seq.invoke(core.clj:133) @ clojure.core$dorun.invoke(core.clj:2723) @ clojure.core$doall.invoke(core.clj:2739) @ backtype.storm.daemon.supervisor$sync_processes.invoke(supervisor.clj:235) @ clojure.lang.afn.applytohelper(afn.java:161) @ clojure.lang.afn.applyto(afn.java:151) @ clojure.core$apply.invoke(core.clj:602) @ clojure.core$partial$fn__3794.doinvoke(core.clj:2341) @ clojure.lang.restfn.invoke(restfn.java:397) @ backtype.storm.event$event_manager$fn__2484.invoke(event.clj:24) @ clojure.lang.afn.run(afn.java:24) @ java.lang.thread.run(thread.java:724) 3864 [thread-6] info backtype.storm.util - halting process: ("error on initialization")
according this discussion similar problem solved re-ordering dependencies. suggest move zookeeper dependency element upper in dependency list.
edit:
i suspect problem comes classpath order issue. i.e. same class present in multiple artifacts , version of offending class loaded the wrong one.
to workaround problem need re-order classpath (you know when same class present multiple time in classpath: first 1 win). reorder classpath need change order of declarations in pom.xml (at least since maven 2.0.9)
quote maven site :
since maven 2.0.9 it's order in declaration counts: first declaration wins.
Comments
Post a Comment