<?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 : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129287#M91974</link>
    <description>&lt;P&gt;Leave storm/lib vanilla and package the higher versions of those libs with your topology jar using maven shade to relocate the necessary packages to avoid conflict. Here is an example from a storm topology that relocates guava (com.google.common).&lt;/P&gt;&lt;PRE&gt;&amp;lt;plugin&amp;gt;
    &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;maven-shade-plugin&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;${version.shade}&amp;lt;/version&amp;gt;
    &amp;lt;configuration&amp;gt;
        &amp;lt;relocations&amp;gt;
            &amp;lt;relocation&amp;gt;
                &amp;lt;pattern&amp;gt;com.google.common&amp;lt;/pattern&amp;gt;
                &amp;lt;shadedPattern&amp;gt;com.cisco.com.google.common&amp;lt;/shadedPattern&amp;gt;
            &amp;lt;/relocation&amp;gt;
        &amp;lt;/relocations&amp;gt;
    &amp;lt;/configuration&amp;gt;
    &amp;lt;executions&amp;gt;
        &amp;lt;execution&amp;gt;
            &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;
            &amp;lt;goals&amp;gt;
                &amp;lt;goal&amp;gt;shade&amp;lt;/goal&amp;gt;
            &amp;lt;/goals&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;filters&amp;gt;
                    &amp;lt;filter&amp;gt;
                        &amp;lt;artifact&amp;gt;*:*&amp;lt;/artifact&amp;gt;
                        &amp;lt;excludes&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.SF&amp;lt;/exclude&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.DSA&amp;lt;/exclude&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.RSA&amp;lt;/exclude&amp;gt;
                        &amp;lt;/excludes&amp;gt;
                    &amp;lt;/filter&amp;gt;
                &amp;lt;/filters&amp;gt;
                &amp;lt;artifactSet&amp;gt;
                    &amp;lt;excludes&amp;gt;
                        &amp;lt;exclude&amp;gt;org.datanucleus&amp;lt;/exclude&amp;gt;
                    &amp;lt;/excludes&amp;gt;
                &amp;lt;/artifactSet&amp;gt;
                &amp;lt;promoteTransitiveDependencies&amp;gt;true&amp;lt;/promoteTransitiveDependencies&amp;gt;
                &amp;lt;transformers&amp;gt;
                    &amp;lt;transformer
                            implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
/&amp;gt;
                &amp;lt;/transformers&amp;gt;
            &amp;lt;/configuration&amp;gt;
        &amp;lt;/execution&amp;gt;
    &amp;lt;/executions&amp;gt;
&amp;lt;/plugin&amp;gt;


&lt;/PRE&gt;</description>
    <pubDate>Sun, 07 Feb 2016 09:38:10 GMT</pubDate>
    <dc:creator>phargis</dc:creator>
    <dc:date>2016-02-07T09:38:10Z</dc:date>
    <item>
      <title>STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129283#M91970</link>
      <description>&lt;P&gt;I'm getting this error : &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The POM for com.google.guava:guava-testlib:jar:16.0.1 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.google.guava:guava-testlib:[unknown-version]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 08:26:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129283#M91970</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-07T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129284#M91971</link>
      <description>&lt;PRE&gt;[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project storm-elasticsearch: Compilation failure: Compilation failure:
[ERROR] /root/storm/external/storm-elasticsearch/src/test/java/org/apache/storm/elasticsearch/common/EsConfigTest.java:[23,33] package com.google.common.collect does not exist
[ERROR] /root/storm/external/storm-elasticsearch/src/test/java/org/apache/storm/elasticsearch/common/EsConfigTest.java:[23,33] package com.google.common.collect does not exist
[ERROR] /root/storm/external/storm-elasticsearch/src/test/java/org/apache/storm/elasticsearch/common/EsConfigTest.java:[57,16] cannot find symbol
[ERROR] symbol:   variable ImmutableMap
[ERROR] location: class org.apache.storm.elasticsearch.common.EsConfigTest
[ERROR] -&amp;gt; [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project storm-elasticsearch: Compilation failure
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
        at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
        at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] &lt;A href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" target="_blank"&gt;http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException&lt;/A&gt;
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn &amp;lt;goals&amp;gt; -rf :storm-elasticsearch&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2016 08:26:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129284#M91971</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-07T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129285#M91972</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;P&gt; what version of maven do you have and please explain what you're doing to reproduce.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 08:43:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129285#M91972</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-07T08:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129286#M91973</link>
      <description>&lt;P&gt;Maven version is 3.2.5. I'm trying to execute storm-starter ExclamationTopology. &lt;/P&gt;&lt;P&gt;storm jar ./storm/examples/storm-starter/target/storm-starter-2.0.0-SNAPSHOT.jar org.apache.storm.starter.ExclamationTopology&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 09:30:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129286#M91973</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-07T09:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129287#M91974</link>
      <description>&lt;P&gt;Leave storm/lib vanilla and package the higher versions of those libs with your topology jar using maven shade to relocate the necessary packages to avoid conflict. Here is an example from a storm topology that relocates guava (com.google.common).&lt;/P&gt;&lt;PRE&gt;&amp;lt;plugin&amp;gt;
    &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;maven-shade-plugin&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;${version.shade}&amp;lt;/version&amp;gt;
    &amp;lt;configuration&amp;gt;
        &amp;lt;relocations&amp;gt;
            &amp;lt;relocation&amp;gt;
                &amp;lt;pattern&amp;gt;com.google.common&amp;lt;/pattern&amp;gt;
                &amp;lt;shadedPattern&amp;gt;com.cisco.com.google.common&amp;lt;/shadedPattern&amp;gt;
            &amp;lt;/relocation&amp;gt;
        &amp;lt;/relocations&amp;gt;
    &amp;lt;/configuration&amp;gt;
    &amp;lt;executions&amp;gt;
        &amp;lt;execution&amp;gt;
            &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;
            &amp;lt;goals&amp;gt;
                &amp;lt;goal&amp;gt;shade&amp;lt;/goal&amp;gt;
            &amp;lt;/goals&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;filters&amp;gt;
                    &amp;lt;filter&amp;gt;
                        &amp;lt;artifact&amp;gt;*:*&amp;lt;/artifact&amp;gt;
                        &amp;lt;excludes&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.SF&amp;lt;/exclude&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.DSA&amp;lt;/exclude&amp;gt;
                            &amp;lt;exclude&amp;gt;META-INF/*.RSA&amp;lt;/exclude&amp;gt;
                        &amp;lt;/excludes&amp;gt;
                    &amp;lt;/filter&amp;gt;
                &amp;lt;/filters&amp;gt;
                &amp;lt;artifactSet&amp;gt;
                    &amp;lt;excludes&amp;gt;
                        &amp;lt;exclude&amp;gt;org.datanucleus&amp;lt;/exclude&amp;gt;
                    &amp;lt;/excludes&amp;gt;
                &amp;lt;/artifactSet&amp;gt;
                &amp;lt;promoteTransitiveDependencies&amp;gt;true&amp;lt;/promoteTransitiveDependencies&amp;gt;
                &amp;lt;transformers&amp;gt;
                    &amp;lt;transformer
                            implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
/&amp;gt;
                &amp;lt;/transformers&amp;gt;
            &amp;lt;/configuration&amp;gt;
        &amp;lt;/execution&amp;gt;
    &amp;lt;/executions&amp;gt;
&amp;lt;/plugin&amp;gt;


&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2016 09:38:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129287#M91974</guid>
      <dc:creator>phargis</dc:creator>
      <dc:date>2016-02-07T09:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129288#M91975</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/184/phargis.html" nodeid="184"&gt;@Paul Hargis&lt;/A&gt; -- Thanks for your time and suggestions. I was able to solve the guava dependency issue. Now I'm getting another error due to external Kafka dependency. Can you guide me?&lt;/P&gt;&lt;P&gt;Running org.apache.storm.kafka.bolt.KafkaBoltTest
Tests run: 16, Failures: 0, Errors: 16, Skipped: 0, Time elapsed: 9.338 sec &amp;lt;&amp;lt;&amp;lt; FAILURE! - in org.apache.storm.kafka.bolt.KafkaBoltTest
executeWithBrokerDown(org.apache.storm.kafka.bolt.KafkaBoltTest)  Time elapsed: 1.65 sec  &amp;lt;&amp;lt;&amp;lt; ERROR! &lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 09:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129288#M91975</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-07T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129289#M91976</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; please post this as a new question on HCC&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 11:22:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129289#M91976</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-02-07T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129290#M91977</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@Ancil McBarnett&lt;/A&gt; -- Hey I made this a seperate question. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 11:41:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129290#M91977</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-07T11:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129291#M91978</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/14998/storm-how-do-i-fix-the-googleguava-dependency-whil.html#"&gt;@Paul Hargis&lt;/A&gt; Follow up question. I have a topology that used both hBase and ElasticSearch 2.1.  hBase depends on guava 1.3 and ElasticSearch 2.1  depends on guava 1.8.  Can I include both versions of guava? I somehow need to tell maven to rewrite the Elastic byte code to refer to the relocated guava 1.8, but to NOT rewrite hBase byte code, so it continues to find guava 1.3.&lt;/P&gt;&lt;P&gt;Is this possible? How?&lt;/P&gt;&lt;P&gt;   ( It seems I could do this by breaking up my project into more pom files and isolating them that way, but that will break the more functional segmentation of my multi-pom project, so maybe there is a more direct way?)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 13:22:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129291#M91978</guid>
      <dc:creator>public_charles</dc:creator>
      <dc:date>2016-02-23T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: STORM : How do I fix the google.guava dependency while running mvn clean install -DskipTests=true ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129292#M91979</link>
      <description>&lt;P&gt;You can exclude certain sub dependencies with &amp;lt;exclude&amp;gt; tag, read the maven docs for that&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:40:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/STORM-How-do-I-fix-the-google-guava-dependency-while-running/m-p/129292#M91979</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-23T19:40:02Z</dc:date>
    </item>
  </channel>
</rss>

