<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Storm error:  java.lang.Long cannot be cast to java.lang.Integer when upgrading from 0.10.0 to 1.0.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126733#M43341</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13678/juchems-mark-e.html" nodeid="13678"&gt;@mark juchems&lt;/A&gt; any chance you can update the thread with JIRA name? Just for a complete picture.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 20:07:44 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-10-13T20:07:44Z</dc:date>
    <item>
      <title>Storm error:  java.lang.Long cannot be cast to java.lang.Integer when upgrading from 0.10.0 to 1.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126730#M43338</link>
      <description>&lt;P&gt;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.  &lt;/P&gt;&lt;PRE&gt;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
&lt;/PRE&gt;&lt;P&gt;This error references this line in the EventHubSpout.jar:&lt;/P&gt;&lt;PRE&gt; stateStore = new ZookeeperStateStore(zkEndpointAddress,
          (Integer)config.get(Config.STORM_ZOOKEEPER_RETRY_TIMES),  &amp;lt;-- right here!
          (Integer)config.get(Config.STORM_ZOOKEEPER_RETRY_INTERVAL));
&lt;/PRE&gt;&lt;P&gt;Any love?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:09:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126730#M43338</guid>
      <dc:creator>juchems_mark_e</dc:creator>
      <dc:date>2016-10-12T23:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Storm error:  java.lang.Long cannot be cast to java.lang.Integer when upgrading from 0.10.0 to 1.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126731#M43339</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13678/juchems-mark-e.html" nodeid="13678"&gt;@mark juchems&lt;/A&gt; the property is actually a String, but silly question, did you try casting to long instead of Integer? &lt;/P&gt;&lt;PRE&gt;(long)config.get(Config.STORM_ZOOKEEPER_RETRY_TIMES)&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://storm.apache.org/releases/1.0.2/javadocs/org/apache/storm/Config.html#STORM_ZOOKEEPER_RETRY_TIMES" target="_blank"&gt;https://storm.apache.org/releases/1.0.2/javadocs/org/apache/storm/Config.html#STORM_ZOOKEEPER_RETRY_TIMES&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:02:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126731#M43339</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-10-13T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Storm error:  java.lang.Long cannot be cast to java.lang.Integer when upgrading from 0.10.0 to 1.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126732#M43340</link>
      <description>&lt;P&gt;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...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126732#M43340</guid>
      <dc:creator>juchems_mark_e</dc:creator>
      <dc:date>2016-10-13T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Storm error:  java.lang.Long cannot be cast to java.lang.Integer when upgrading from 0.10.0 to 1.0.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126733#M43341</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13678/juchems-mark-e.html" nodeid="13678"&gt;@mark juchems&lt;/A&gt; any chance you can update the thread with JIRA name? Just for a complete picture.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 20:07:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-error-java-lang-Long-cannot-be-cast-to-java-lang/m-p/126733#M43341</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-10-13T20:07:44Z</dc:date>
    </item>
  </channel>
</rss>

