Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-12-2016 04:09 PM
I am upgrading from Storm 0.10.0 to 1.0.1 . All is great but when I run it I get the following error.
java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at org.apache.storm.eventhubs.spout.EventHubSpout.open(EventHubSpout.java:156) ~[storm-eventhubs-1.0.1.jar:1.0.1] at cat.tmatic.mh.spout.TmaticsEventHubSpout.open(TmaticsEventHubSpout.java:71) ~[classes/:?] at org.apache.storm.daemon.executor$fn__7885$fn__7900.invoke(executor.clj:601) ~[storm-core-1.0.1.jar:1.0.1] at org.apache.storm.util$async_loop$fn__625.invoke(util.clj:482) [storm-core-1.0.1.jar:1.0.1] at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_74] Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at org.apache.storm.eventhubs.spout.EventHubSpout.preparePartitions(EventHubSpout.java:124) ~[storm-eventhubs-1.0.1.jar:1.0.1] at org.apache.storm.eventhubs.spout.EventHubSpout.open(EventHubSpout.java:153) ~[storm-eventhubs-1.0.1.jar:1.0.1] ... 5 more
This error references this line in the EventHubSpout.jar:
stateStore = new ZookeeperStateStore(zkEndpointAddress,
(Integer)config.get(Config.STORM_ZOOKEEPER_RETRY_TIMES), <-- right here!
(Integer)config.get(Config.STORM_ZOOKEEPER_RETRY_INTERVAL));
Any love?
Created 10-13-2016 12:57 PM
This code is in the EventHub jar. I submitted it to Hortonworks and they wrote a JIRA for it. It is an official bug. Not sure how the code ever ran for anyone...
Created 10-13-2016 02:02 AM
@mark juchems the property is actually a String, but silly question, did you try casting to long instead of Integer?
(long)config.get(Config.STORM_ZOOKEEPER_RETRY_TIMES)
Created 10-13-2016 12:57 PM
This code is in the EventHub jar. I submitted it to Hortonworks and they wrote a JIRA for it. It is an official bug. Not sure how the code ever ran for anyone...
Created 10-13-2016 01:07 PM
@mark juchems any chance you can update the thread with JIRA name? Just for a complete picture.