<?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: I am getting InvalidClassException using storm on HDP 2.5 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206565#M66156</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26217/paragdharmadhikari.html" nodeid="26217"&gt;@parag dharmadhikari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like your class "twitter4j.MediaEntityJSONImpl"  version is not compatible. So please check if you can get a different version of JAR that contains the "twitter4j.MediaEntityJSONImpl" class to see if it fixed the issue.&lt;/P&gt;&lt;P&gt;If you still face the issue then can you please share the list of JARs that your application is using?  Better if you  can share the whole "pom.xml" to see of the dependency is OK.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2017 18:21:54 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-08-07T18:21:54Z</dc:date>
    <item>
      <title>I am getting InvalidClassException using storm on HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206564#M66155</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having HDP 2.5 and storm core version as storm-core-1.0.1.2.5.3.0-37.jar. My code was working with Local Cluster but its failing when using StormSubmitter.submitTopology. It gives me InvalidClassException. Below is complete stack.&lt;/P&gt;&lt;P&gt;One more observation that jar gives error while executing first time and run afterwards. I searched and implemented as below, but nothing worked. Please help me.&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: java.io.InvalidClassException: twitter4j.MediaEntityJSONImpl; local class incompatible: stream classdesc serialVersionUID = 1571961225214439778, local class serialVersionUID = 3609683338035442290&lt;BR /&gt;at org.apache.storm.serialization.SerializableSerializer.read(SerializableSerializer.java:58) ~[storm-core-1.0.1.2.5.3.0-37.jar:1.0.1.2.5.3.0-37]&lt;/P&gt;&lt;P&gt;1. added serialVersionUID with value 1571961225214439778L, 3609683338035442290, 1L but nothing worked&lt;/P&gt;&lt;P&gt;2. Implemented Serializable, Externalizable in my POJOs&lt;/P&gt;&lt;P&gt;3. Since I am using storm-core-1.0.1.2.5.3.0-37.jar &amp;amp; HDP 2.5 so added maven dependency in pom with scope as provided  which matches it, but did not worked. &lt;/P&gt;&lt;P&gt;4. Added no-arg constructors.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Aug 2017 18:13:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206564#M66155</guid>
      <dc:creator>parag_dharmadhi</dc:creator>
      <dc:date>2017-08-07T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting InvalidClassException using storm on HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206565#M66156</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26217/paragdharmadhikari.html" nodeid="26217"&gt;@parag dharmadhikari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like your class "twitter4j.MediaEntityJSONImpl"  version is not compatible. So please check if you can get a different version of JAR that contains the "twitter4j.MediaEntityJSONImpl" class to see if it fixed the issue.&lt;/P&gt;&lt;P&gt;If you still face the issue then can you please share the list of JARs that your application is using?  Better if you  can share the whole "pom.xml" to see of the dependency is OK.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 18:21:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206565#M66156</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-07T18:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting InvalidClassException using storm on HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206566#M66157</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks Jay for your response. I will try your suggestion. Mean while my POM is as below,&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&amp;lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;BR /&gt;  &amp;lt;groupId&amp;gt;com.rolta&amp;lt;/groupId&amp;gt;&lt;BR /&gt;  &amp;lt;artifactId&amp;gt;stormtwitter&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;  &amp;lt;version&amp;gt;0.0.1-SNAPSHOT&amp;lt;/version&amp;gt;&lt;BR /&gt;  &amp;lt;dependencies&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt; &lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt; &lt;BR /&gt;  &amp;lt;artifactId&amp;gt;slf4j-api&amp;lt;/artifactId&amp;gt; &lt;BR /&gt;  &amp;lt;version&amp;gt;1.7.7&amp;lt;/version&amp;gt; &lt;BR /&gt;  &amp;lt;/dependency&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt;&lt;BR /&gt; &amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt;&lt;BR /&gt; &amp;lt;artifactId&amp;gt;slf4j-simple&amp;lt;/artifactId&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.7.7&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;/dependency&amp;gt;&lt;BR /&gt;  &amp;lt;dependency&amp;gt; &lt;BR /&gt;  &amp;lt;groupId&amp;gt;joda-time&amp;lt;/groupId&amp;gt; &lt;BR /&gt;  &amp;lt;artifactId&amp;gt;joda-time&amp;lt;/artifactId&amp;gt; &lt;BR /&gt;  &amp;lt;version&amp;gt;2.9.9&amp;lt;/version&amp;gt; &lt;BR /&gt;  &amp;lt;/dependency&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt; &lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.twitter4j&amp;lt;/groupId&amp;gt; &lt;BR /&gt;  &amp;lt;artifactId&amp;gt;twitter4j-core&amp;lt;/artifactId&amp;gt; &lt;BR /&gt;  &amp;lt;version&amp;gt;4.0.6&amp;lt;/version&amp;gt; &lt;BR /&gt;  &amp;lt;/dependency&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt; &lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.twitter4j&amp;lt;/groupId&amp;gt; &lt;BR /&gt;  &amp;lt;artifactId&amp;gt;twitter4j-stream&amp;lt;/artifactId&amp;gt; &lt;BR /&gt;  &amp;lt;version&amp;gt;4.0.6&amp;lt;/version&amp;gt; &lt;BR /&gt;  &amp;lt;/dependency&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt; &lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.apache.storm&amp;lt;/groupId&amp;gt; &lt;BR /&gt;  &amp;lt;artifactId&amp;gt;storm-core&amp;lt;/artifactId&amp;gt; &lt;BR /&gt;  &amp;lt;version&amp;gt;1.0.1&amp;lt;/version&amp;gt; &lt;BR /&gt;  &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt; &lt;BR /&gt;  &amp;lt;/dependency&amp;gt; &lt;BR /&gt;  &amp;lt;dependency&amp;gt;&lt;BR /&gt;   &amp;lt;groupId&amp;gt;org.apache.opennlp&amp;lt;/groupId&amp;gt;&lt;BR /&gt; &amp;lt;artifactId&amp;gt;opennlp-tools&amp;lt;/artifactId&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.8.1&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;/dependency&amp;gt;&lt;BR /&gt; &amp;lt;dependency&amp;gt;&lt;BR /&gt;   &amp;lt;groupId&amp;gt;org.apache.solr&amp;lt;/groupId&amp;gt;&lt;BR /&gt;   &amp;lt;artifactId&amp;gt;solr-solrj&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;   &amp;lt;version&amp;gt;6.6.0&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;/dependency&amp;gt;&lt;BR /&gt; &amp;lt;dependency&amp;gt;&lt;BR /&gt;   &amp;lt;groupId&amp;gt;com.jolira&amp;lt;/groupId&amp;gt;&lt;BR /&gt;   &amp;lt;artifactId&amp;gt;onejar-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;   &amp;lt;version&amp;gt;1.4.4&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;/dependency&amp;gt;&lt;BR /&gt;  &amp;lt;/dependencies&amp;gt; &lt;BR /&gt;  &lt;BR /&gt; &amp;lt;build&amp;gt;&lt;BR /&gt;  &amp;lt;plugins&amp;gt;&lt;BR /&gt;  &amp;lt;plugin&amp;gt;&lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;BR /&gt;  &amp;lt;artifactId&amp;gt;maven-source-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;  &amp;lt;/plugin&amp;gt;&lt;BR /&gt;  &amp;lt;plugin&amp;gt;&lt;BR /&gt; &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;BR /&gt; &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt; &amp;lt;configuration&amp;gt;&lt;BR /&gt; &amp;lt;source&amp;gt;1.8&amp;lt;/source&amp;gt;&lt;BR /&gt; &amp;lt;target&amp;gt;1.8&amp;lt;/target&amp;gt;&lt;BR /&gt; &amp;lt;/configuration&amp;gt;&lt;BR /&gt; &amp;lt;/plugin&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;plugin&amp;gt;&lt;BR /&gt;  &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;BR /&gt;  &amp;lt;artifactId&amp;gt;maven-shade-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;  &amp;lt;version&amp;gt;2.4.3&amp;lt;/version&amp;gt;&lt;BR /&gt;  &amp;lt;executions&amp;gt;&lt;BR /&gt;  &amp;lt;execution&amp;gt;&lt;BR /&gt;  &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;&lt;BR /&gt;  &amp;lt;goals&amp;gt;&lt;BR /&gt;  &amp;lt;goal&amp;gt;shade&amp;lt;/goal&amp;gt;&lt;BR /&gt;  &amp;lt;/goals&amp;gt;&lt;BR /&gt;  &amp;lt;configuration&amp;gt;&lt;BR /&gt;  &amp;lt;artifactSet&amp;gt;&lt;BR /&gt;  &amp;lt;excludes&amp;gt;&lt;BR /&gt;  &amp;lt;exclude&amp;gt;org.slf4j:slf4j-log4j12:*&amp;lt;/exclude&amp;gt;&lt;BR /&gt;  &amp;lt;exclude&amp;gt;log4j:log4j:jar:&amp;lt;/exclude&amp;gt;&lt;BR /&gt;  &amp;lt;exclude&amp;gt;org.slf4j:slf4j-simple:jar&amp;lt;/exclude&amp;gt;&lt;BR /&gt;  &amp;lt;exclude&amp;gt;org.apache.storm:storm-core&amp;lt;/exclude&amp;gt;&lt;BR /&gt;  &amp;lt;/excludes&amp;gt;&lt;BR /&gt;  &amp;lt;/artifactSet&amp;gt;&lt;BR /&gt;  &amp;lt;transformers&amp;gt;&lt;BR /&gt;  &amp;lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&amp;gt;&lt;BR /&gt;  &amp;lt;mainClass&amp;gt;com.rolta.storm.topology.Topology&amp;lt;/mainClass&amp;gt;&lt;BR /&gt;  &amp;lt;/transformer&amp;gt;&lt;BR /&gt;  &amp;lt;/transformers&amp;gt;&lt;BR /&gt;  &amp;lt;/configuration&amp;gt;&lt;BR /&gt;  &amp;lt;/execution&amp;gt;&lt;BR /&gt;  &amp;lt;/executions&amp;gt;&lt;BR /&gt;  &amp;lt;/plugin&amp;gt;&lt;BR /&gt;  &lt;BR /&gt;  &amp;lt;/plugins&amp;gt;&lt;BR /&gt;  &amp;lt;/build&amp;gt;&lt;BR /&gt;  &lt;BR /&gt;&amp;lt;/project&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 18:57:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206566#M66157</guid>
      <dc:creator>parag_dharmadhi</dc:creator>
      <dc:date>2017-08-07T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: I am getting InvalidClassException using storm on HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206567#M66158</link>
      <description>&lt;P&gt;thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It worked. I am using twitter4j 4.0.4 now.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:39:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-am-getting-InvalidClassException-using-storm-on-HDP-2-5/m-p/206567#M66158</guid>
      <dc:creator>parag_dharmadhi</dc:creator>
      <dc:date>2017-08-08T16:39:48Z</dc:date>
    </item>
  </channel>
</rss>

