<?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: oozie share lib for oozie contains a lot of jar files in 2.3.4. why? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155169#M24370</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;.  Since the cluster I'm on is shared by many users for many different workloads I won't be able to make that change easily.  Are there oozie JIRAs regarding this change I could read or was this specific to HWX packaging?  I'd like to learn more about it since it seems very disruptive to java actions, e.g. having a 4+ year old version of guava in the classpath.  Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 19:57:45 GMT</pubDate>
    <dc:creator>Aaron_Dossett</dc:creator>
    <dc:date>2016-04-05T19:57:45Z</dc:date>
    <item>
      <title>oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155162#M24363</link>
      <description>&lt;P&gt;Hi, we recently upgraded from HDP 2.2.X to 2.3.4 and I notice that /user/oozie/share/lib/oozie contains a lot more jar files now. See below.  The presence of these jar files is puzzling since they are otherwise in the classpath of, say, java oozie actions. e.g. in directories like `mr-framework/hadoop/share/hadoop/common/lib/`&lt;/P&gt;&lt;P&gt;Does anyone know 1) why these jars in share/lib/oozie and 2) if they can be safely removed?  Thanks!&lt;/P&gt;&lt;P&gt;2.3.4:&lt;/P&gt;&lt;PRE&gt;-rw-r--r--   3 oozie hadoop   11948376 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/aws-java-sdk-1.7.4.jar
-rw-r--r--   3 oozie hadoop     666763 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/azure-storage-2.2.0.jar
-rw-r--r--   3 oozie hadoop     412739 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/commons-lang3-3.3.2.jar
-rw-r--r--   3 oozie hadoop    1648200 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/guava-11.0.2.jar
-rw-r--r--   3 oozie hadoop     103052 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/hadoop-aws-2.7.1.2.3.4.0-3485.jar
-rw-r--r--   3 oozie hadoop     137439 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/hadoop-azure-2.7.1.2.3.4.0-3485.jar
-rw-r--r--   3 oozie hadoop      33483 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/jackson-annotations-2.2.3.jar
-rw-r--r--   3 oozie hadoop     192699 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/jackson-core-2.2.3.jar
-rw-r--r--   3 oozie hadoop     865838 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/jackson-databind-2.2.3.jar
-rw-r--r--   3 oozie hadoop     570478 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/joda-time-2.1.jar
-rw-r--r--   3 oozie hadoop      16046 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/json-simple-1.1.jar
-rw-r--r--   3 oozie hadoop      12294 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/oozie-hadoop-utils-hadoop-2-4.2.0.2.3.4.0-3485.jar
-rw-r--r--   3 oozie hadoop      49474 2016-02-17 15:19 /user/oozie/share/lib/lib_20160217151921/oozie/oozie-sharelib-oozie-4.2.0.2.3.4.0-3485.jar&lt;/PRE&gt;&lt;P&gt;2.2&lt;/P&gt;&lt;PRE&gt;-rw-r--r--   3 hdfs  hadoop       7832 2015-09-02 12:57 /user/oozie/share/lib/oozie/core-site.xml
-rw-r--r--   3 hdfs  hadoop       9517 2015-09-02 12:57 /user/oozie/share/lib/oozie/hdfs-site.xml
-rwxr-xr-x   3 oozie hadoop      16046 2015-06-17 23:08 /user/oozie/share/lib/oozie/json-simple-1.1.jar
-rw-r--r--   3 hdfs  hadoop       6671 2015-09-02 12:57 /user/oozie/share/lib/oozie/mapred-site.xml
-rwxr-xr-x   3 oozie hadoop       3242 2015-06-17 23:08 /user/oozie/share/lib/oozie/oozie-hadoop-utils-2.6.0.2.2.4.12-1.oozie-4.1.0.2.2.4.12-1.jar
-rwxr-xr-x   3 oozie hadoop      41903 2015-06-17 23:08 /user/oozie/share/lib/oozie/oozie-sharelib-oozie-4.1.0.2.2.4.12-1.jar
-rw-r--r--   3 hdfs  hadoop      18164 2015-11-04 18:55 /user/oozie/share/lib/oozie/yarn-site.xml&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:03:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155162#M24363</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2016-04-04T20:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155163#M24364</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/755/aarondossett.html" nodeid="755"&gt;@Aaron Dossett&lt;/A&gt;&lt;P&gt;Please don't remove these JARs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Yes its by design to support more functionality and fix existing bugs.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:15:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155163#M24364</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-04T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155164#M24365</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;!  It's causing me some problems because files like jackson-*.jar and guava appear early in the classpath (the current directory of the oozie action) and late in the classpath (mr-framework/hadoop/share/hadoop/common/lib/).  I would effectively have to pin the dependencies of my java action to those precise versions.  Any way around that?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:29:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155164#M24365</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2016-04-04T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155165#M24366</link>
      <description>&lt;P&gt;you can explicitly set your dependencies in your java program and exclude dependencies for the version causing you problems. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:31:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155165#M24366</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-04T20:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155166#M24367</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/755/aarondossett.html" nodeid="755"&gt;@Aaron Dossett&lt;/A&gt; - Can you please check below comment by Artem&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:31:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155166#M24367</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-05T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155167#M24368</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;. Yes, I can definitely control the versions that my java application includes.  The problem is that when the java action runs, the jar files that I created are in the "current directory" of the java action along with the other versions that oozie share lib is including.  These jar files have the same classpath precedence so it appears to be random which jar is picked up.  For example, com.fasterxml.jackson.core.JsonFactory might be found in my own jar or in jackson-core-2.2.3.jar provided by oozie.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:11:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155167#M24368</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2016-04-05T04:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155168#M24369</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/755/aarondossett.html" nodeid="755"&gt;@Aaron Dossett&lt;/A&gt; - Okay if that is the case, can you please try removing conflicting jar file(s) from oozie sharelib and see if that helps. If you want to revert the changes you can just re-create oozie sharelib by using below command&lt;/P&gt;&lt;P&gt;Note - Please run below commands on oozie host by oozie user.&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.3.2.0-2950/oozie/bin/oozie-setup.sh sharelib create -locallib /usr/hdp/&amp;lt;version&amp;gt;/oozie/oozie-sharelib.tar.gz -fs hdfs://&amp;lt;namenode-host&amp;gt;:8020&lt;/PRE&gt;&lt;PRE&gt;oozie admin -oozie &lt;A href="http://localhost:11000/oozie"&gt;http://&amp;lt;oozie-host&amp;gt;:11000/oozie&lt;/A&gt; -sharelibupdate&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 12:39:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155168#M24369</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-05T12:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155169#M24370</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;.  Since the cluster I'm on is shared by many users for many different workloads I won't be able to make that change easily.  Are there oozie JIRAs regarding this change I could read or was this specific to HWX packaging?  I'd like to learn more about it since it seems very disruptive to java actions, e.g. having a 4+ year old version of guava in the classpath.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 19:57:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155169#M24370</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2016-04-05T19:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155170#M24371</link>
      <description>&lt;P&gt;I was in a similar situation, to my surprise, the issue was on the client side, my .M2 directory had old version of jackson that was being appended before the proper version, I ended up using exclude tags&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 20:03:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155170#M24371</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-05T20:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: oozie share lib for oozie contains a lot of jar files in 2.3.4. why?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155171#M24372</link>
      <description>&lt;P&gt;I had the same problem that dependencies got into conflict. I used Maven shade plugin to relocate all my dependencies.&lt;/P&gt;&lt;P&gt;&lt;A href="https://maven.apache.org/components/plugins/maven-shade-plugin/examples/class-relocation.html" target="_blank"&gt;https://maven.apache.org/components/plugins/maven-shade-plugin/examples/class-relocation.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 19:16:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-share-lib-for-oozie-contains-a-lot-of-jar-files-in-2-3/m-p/155171#M24372</guid>
      <dc:creator>joosep_simm</dc:creator>
      <dc:date>2016-11-26T19:16:08Z</dc:date>
    </item>
  </channel>
</rss>

