<?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: Spark - separating dependecies of spark and application in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/316416#M226795</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can solve this by using the Maven shade plugin. Take a look at the Cloudera doc &lt;A href="https://docs.cloudera.com/runtime/7.2.9/developing-spark-applications/topics/spark-packaging-different-versions-of-libraries-with-an-application.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.9/developing-spark-applications/topics/spark-packaging-different-versions-of-libraries-with-an-application.html&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 14:41:37 GMT</pubDate>
    <dc:creator>mridley</dc:creator>
    <dc:date>2021-05-14T14:41:37Z</dc:date>
    <item>
      <title>Spark - separating dependecies of spark and application</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/316341#M226772</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I struggle on a dependency issues in spark, now. Being new in spark, I hope there is a simple remedy.&lt;BR /&gt;The question is, is there any mechanism how to separate dependencies of the spark engine and dependencies of a application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: The latest version of spark-core_2.12 (3.1.1, March 2021) depends on&lt;BR /&gt;hadoop-client (3.3.0, March 2020) which itself depends on hadoop-common (3.3.0, July 2020)&lt;BR /&gt;which finally depends on an antient version of gson (2.2.4, May 2013).&lt;/P&gt;&lt;P&gt;You can easily find many other examples, e.g. commons-codec, protobuf-java ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what if your application, basically a library developed outside spark, depends on the latest (no longer compatible) version of gson 2.8.6?&lt;/P&gt;&lt;P&gt;My obviously naive approach to start a spark application ends in runtime incompatibility clashes (e.g. with gson)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:17:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/316341#M226772</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2021-05-13T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark - separating dependecies of spark and application</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/316416#M226795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can solve this by using the Maven shade plugin. Take a look at the Cloudera doc &lt;A href="https://docs.cloudera.com/runtime/7.2.9/developing-spark-applications/topics/spark-packaging-different-versions-of-libraries-with-an-application.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.9/developing-spark-applications/topics/spark-packaging-different-versions-of-libraries-with-an-application.html&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 14:41:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/316416#M226795</guid>
      <dc:creator>mridley</dc:creator>
      <dc:date>2021-05-14T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spark - separating dependecies of spark and application</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/317023#M226988</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80158"&gt;@Jarinek&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Did the reply from&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/193"&gt;@mridley&lt;/a&gt;&amp;nbsp;resolve your issue? If so, please mark the reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:47:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-separating-dependecies-of-spark-and-application/m-p/317023#M226988</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2021-05-24T12:47:55Z</dc:date>
    </item>
  </channel>
</rss>

