errors occurred while upgrading from 0.5.2 to 0.6.1-rc

140 views
Skip to first unread message

Haitao Yao

unread,
Dec 26, 2011, 1:17:11 AM12/26/11
to storm-user storm-user
Hi,all
I got some errors while upgrading from 0.5.2 to 0.6.1-rc.

I deleted the znode: /storm in the zk server, and it works.

Do I have to do this to upgrade? Is there any other simpler way?

thanks.

here's the log:
2011-12-26 13:52:18 nimbus [ERROR] Error when processing event
java.lang.RuntimeException: java.io.InvalidClassException: backtype.storm.daemon.common.StormBase; local class incompatible:
stream classdesc serialVersionUID = -8543369197191003123, local class serialVersionUID = -5265575767724623544
at backtype.storm.utils.Utils.deserialize(Utils.java:53)
at backtype.storm.cluster$maybe_deserialize.invoke(cluster.clj:184)
at backtype.storm.cluster$mk_storm_cluster_state$reify__2062.storm_base(cluster.clj:316)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:90)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at backtype.storm.daemon.nimbus$topology_status.invoke(nimbus.clj:133)
at backtype.storm.daemon.nimbus$transition_BANG_.invoke(nimbus.clj:141)
at backtype.storm.daemon.nimbus$transition_BANG_.invoke(nimbus.clj:137)
at backtype.storm.daemon.nimbus$fn__2838$exec_fn__977__auto____2839$fn__2842.invoke(nimbus.clj:626)
at backtype.storm.timer$schedule_recurring$this__1287.invoke(timer.clj:73)
at backtype.storm.timer$mk_timer$fn__1277$fn__1278.invoke(timer.clj:32)
at backtype.storm.timer$mk_timer$fn__1277.invoke(timer.clj:27)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.InvalidClassException: backtype.storm.daemon.common.StormBase; local class incompatible: stream classdesc
serialVersionUID = -8543369197191003123, local class serialVersionUID = -5265575767724623544
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at backtype.storm.utils.Utils.deserialize(Utils.java:49)
... 17 more

nathanmarz

unread,
Dec 26, 2011, 8:46:17 PM12/26/11
to storm-user
A release in between 0.5.2 and 0.6.1 changed the format of how things
are stored on Zookeeper, which is why you got that error. The safest
way to upgrade is to shut everything down before upgrading ("hard
reset").

Major releases will almost always require a hard reset.



On Dec 25, 10:17 pm, Haitao Yao <yao.e...@gmail.com> wrote:
> Hi,all
>         I got some errors while upgrading from 0.5.2 to 0.6.1-rc.
>
>         I deleted the znode: /storm in the zk server, and it works.
>
>         Do I have to do this to upgrade? Is there any other simpler way?
>
>         thanks.
>
>         here's the log:
> 2011-12-26 13:52:18 nimbus [ERROR] Error when processing event
> java.lang.RuntimeException: java.io.InvalidClassException: backtype.storm.daemon.common.StormBase; local class incompatible:
> stream classdesc serialVersionUID = -8543369197191003123, local class serialVersionUID = -5265575767724623544
>         at backtype.storm.utils.Utils.deserialize(Utils.java:53)
>         at backtype.storm.cluster$maybe_deserialize.invoke(cluster.clj:184)
>         at backtype.storm.cluster$mk_storm_cluster_state$reify__2062.storm_base(cluste r.clj:316)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:90)
>         at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
>         at backtype.storm.daemon.nimbus$topology_status.invoke(nimbus.clj:133)
>         at backtype.storm.daemon.nimbus$transition_BANG_.invoke(nimbus.clj:141)
>         at backtype.storm.daemon.nimbus$transition_BANG_.invoke(nimbus.clj:137)
>         at backtype.storm.daemon.nimbus$fn__2838$exec_fn__977__auto____2839$fn__2842.i nvoke(nimbus.clj:626)
Reply all
Reply to author
Forward
0 new messages