<?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 Can I ensure that my own jars have classpath priority for oozie java actions? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99450#M62519</link>
    <description>&lt;P&gt;I want my own jar files searched first before, for example, the standard jar files included in oozie actions like "/hadoop/yarn/local/filecache/22/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/"&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 06:01:05 GMT</pubDate>
    <dc:creator>Aaron_Dossett</dc:creator>
    <dc:date>2015-12-16T06:01:05Z</dc:date>
    <item>
      <title>Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99450#M62519</link>
      <description>&lt;P&gt;I want my own jar files searched first before, for example, the standard jar files included in oozie actions like "/hadoop/yarn/local/filecache/22/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/"&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 06:01:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99450#M62519</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2015-12-16T06:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99451#M62520</link>
      <description>&lt;P&gt;for example you want to use pig 0.14 instead of 0.15 shipped with HDP 2.3&lt;/P&gt;&lt;P&gt;put 0.14 libs in sharelib with unique name, i.e. pig-14&lt;/P&gt;&lt;P&gt;in your job.properties specify the following&lt;/P&gt;&lt;P&gt;oozie.action.sharelib.for.pig=pig-14&lt;/P&gt;&lt;P&gt;job.properties precedence is at a job level, if you put this property within pig action, it will only take effect during the pig action and at server level, you'd put this property in oozie-site.xml&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:33:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99451#M62520</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-12-16T21:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99452#M62521</link>
      <description>&lt;P&gt;Thanks. Is there a way for an individual user to do without access to add things to sharelib?  &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:50:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99452#M62521</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2015-12-16T21:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99453#M62522</link>
      <description>&lt;P&gt;then you probably need to create a lib folder in your workflow directory and put your libs there. Here's a sample for a file I need to reference in my workflow. You also may not need to set configs with lib folder present. &lt;A href="https://github.com/dbist/oozie/tree/master/apps/hcatalog" target="_blank"&gt;https://github.com/dbist/oozie/tree/master/apps/hcatalog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99453#M62522</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-12-16T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99454#M62523</link>
      <description>&lt;P&gt;I do have a lib folder, it just seems to be last in classpath precedence. A way to force it to have a higher precedence would be ideal.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:00:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99454#M62523</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2015-12-16T22:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99455#M62524</link>
      <description>&lt;P&gt;turn it off &lt;/P&gt;&lt;P&gt;oozie.use.system.libpath=false&lt;/P&gt;&lt;P&gt;and specify your own in job.properties&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:16:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99455#M62524</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-12-16T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99456#M62525</link>
      <description>&lt;P&gt;Thanks for all the suggestions!  That did not solve the problem unfortunately.  There's appears to be a lot of things still in my classpath ahead of my lib directory.&lt;/P&gt;&lt;PRE&gt;System.out.println("com.fasterxml.jackson.core.JsonFactory: [" + cl.getResource("com/fasterxml/jackson/core/JsonFactory.class") + "]");
&lt;/PRE&gt;&lt;P&gt;Which prints this when run as a java action, regadless of the libpath setting&lt;/P&gt;&lt;PRE&gt;com.fasterxml.jackson.core.JsonFactory: [jar:file:/hadoop/yarn/local/filecache/22/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/jackson-core-2.2.3.jar!/com/fasterxml/jackson/core/JsonFactory.class]&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 01:38:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99456#M62525</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2015-12-17T01:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I ensure that my own jars have classpath priority for oozie java actions?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99457#M62526</link>
      <description>&lt;P&gt;To answer my own question, the oozie user mailing list led me to this option within the java action configuration:&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;oozie.launcher.mapreduce.user.classpath.first&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://mail-archives.apache.org/mod_mbox/oozie-user/201308.mbox/%3C9F2E1078D368B34B9991026BE783B84919CB7DEF@CERNMSGLS5MB2B.cerner.net%3E"&gt;https://mail-archives.apache.org/mod_mbox/oozie-us...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See also OOZIE-2066: &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2066"&gt;https://issues.apache.org/jira/browse/OOZIE-2066&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 08:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-ensure-that-my-own-jars-have-classpath-priority-for/m-p/99457#M62526</guid>
      <dc:creator>Aaron_Dossett</dc:creator>
      <dc:date>2015-12-17T08:33:26Z</dc:date>
    </item>
  </channel>
</rss>

