<?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 On CDH5.3.2, artifacts lib jar precedence over Cloudera Jars in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/25814#M5396</link>
    <description>&lt;P&gt;On CDH5.3.2, classpath for artifacts lib jar does not precedes over Cloudera Jars. Our&amp;nbsp;artifact uses (aws-java-sdk-1.7.12.jar) which is&amp;nbsp;part of artifact Lib dir. However Cloudera loads a previous version jar &amp;nbsp;(aws-java-sdk-1.7.4.jar)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Jar loading Precedence:&lt;/P&gt;&lt;P&gt;1) /opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/lib/aws-java-sdk-1.7.4.jar&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;/data3/yarn/nm/usercache/oozie/appcache/application_.../container_.../aws-java-sdk-1.7.12.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This throws&amp;nbsp;&amp;nbsp;throws &amp;nbsp;java.lang.NoSuchMethodError&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired&amp;nbsp;Jar Loading Precedence:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;/data3/yarn/nm/usercache/oozie/appcache/application_.../container_.../aws-java-sdk-1.7.12.jar&lt;/P&gt;&lt;P&gt;2) /opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/lib/aws-java-sdk-1.7.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried vairous online suggested property file changes to 'true'.&lt;/P&gt;&lt;P&gt;* oozie.launcher.mapreduce.task.classpath.user.precedence&lt;/P&gt;&lt;P&gt;* mapreduce.task.classpath.user.precedence&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.task.classpath.first&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.job.user.classpath.first&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.user.classpath.first&lt;/P&gt;&lt;P&gt;* mapreduce.task.classpath.user.precedence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However all the above in the job.properties and workflow file did not change the precedence. I working with a &amp;nbsp;&lt;STRONG&gt;Java&lt;/STRONG&gt; action here.&lt;/P&gt;&lt;P&gt;This feature was easily reverted&amp;nbsp;in previous CHD4+ releases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:25:08 GMT</pubDate>
    <dc:creator>ppatel11</dc:creator>
    <dc:date>2022-09-16T09:25:08Z</dc:date>
    <item>
      <title>On CDH5.3.2, artifacts lib jar precedence over Cloudera Jars</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/25814#M5396</link>
      <description>&lt;P&gt;On CDH5.3.2, classpath for artifacts lib jar does not precedes over Cloudera Jars. Our&amp;nbsp;artifact uses (aws-java-sdk-1.7.12.jar) which is&amp;nbsp;part of artifact Lib dir. However Cloudera loads a previous version jar &amp;nbsp;(aws-java-sdk-1.7.4.jar)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Jar loading Precedence:&lt;/P&gt;&lt;P&gt;1) /opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/lib/aws-java-sdk-1.7.4.jar&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;/data3/yarn/nm/usercache/oozie/appcache/application_.../container_.../aws-java-sdk-1.7.12.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This throws&amp;nbsp;&amp;nbsp;throws &amp;nbsp;java.lang.NoSuchMethodError&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired&amp;nbsp;Jar Loading Precedence:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;/data3/yarn/nm/usercache/oozie/appcache/application_.../container_.../aws-java-sdk-1.7.12.jar&lt;/P&gt;&lt;P&gt;2) /opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/lib/aws-java-sdk-1.7.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried vairous online suggested property file changes to 'true'.&lt;/P&gt;&lt;P&gt;* oozie.launcher.mapreduce.task.classpath.user.precedence&lt;/P&gt;&lt;P&gt;* mapreduce.task.classpath.user.precedence&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.task.classpath.first&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.job.user.classpath.first&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;mapreduce.user.classpath.first&lt;/P&gt;&lt;P&gt;* mapreduce.task.classpath.user.precedence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However all the above in the job.properties and workflow file did not change the precedence. I working with a &amp;nbsp;&lt;STRONG&gt;Java&lt;/STRONG&gt; action here.&lt;/P&gt;&lt;P&gt;This feature was easily reverted&amp;nbsp;in previous CHD4+ releases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:25:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/25814#M5396</guid>
      <dc:creator>ppatel11</dc:creator>
      <dc:date>2022-09-16T09:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: On CDH5.3.2, artifacts lib jar precedence over Cloudera Jars</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/25861#M5397</link>
      <description>&lt;P&gt;Was able to fix this however had few hickups. Here are the details&lt;BR /&gt;1) Set oozie.launcher.mapreduce.task.classpath.user.precedence to true&lt;BR /&gt;2) Precedene was alterd. Howerever encountered:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------&lt;BR /&gt;Application application_1426549201832_0261 failed 2 times due to AM Container for appattempt_1426549201832_0261_000002 exited with exitCode: 1 due to: Exception from container-launch.&lt;BR /&gt;Container id: container_1426549201832_0261_02_000001&lt;BR /&gt;Exit code: 1&lt;BR /&gt;Stack trace: ExitCodeException exitCode=1:&lt;BR /&gt;at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)&lt;BR /&gt;at org.apache.hadoop.util.Shell.run(Shell.java:455)&lt;BR /&gt;at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:702)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:197)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:299)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:81)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;Container exited with a non-zero exit code 1&lt;BR /&gt;.Failing this attempt.. Failing the application.&lt;/P&gt;&lt;P&gt;2015-03-24 15:43:30,899 FATAL [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Error starting MRAppMaster&lt;BR /&gt;java.lang.NoSuchMethodError: org.apache.hadoop.mapred.TaskLog.createLogSyncer()Ljava/util/concurrent/ScheduledExecutorService;&lt;BR /&gt;at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.&amp;lt;init&amp;gt;(MRAppMaster.java:244)&lt;BR /&gt;at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.&amp;lt;init&amp;gt;(MRAppMaster.java:227)&lt;BR /&gt;at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1390)&lt;BR /&gt;2015-03-24 15:43:30,913 INFO [main]&lt;BR /&gt;org.apache.hadoop.util.ExitUtil: Exiting with status 1&lt;BR /&gt;--------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Suggesting... Jars found in the artifact lib for hadoop-code were in conflict with the expected jars by the CDH5.3.2 cluster we had.&lt;/P&gt;&lt;P&gt;3) Hadoop-core jars from Artifacts POM were excluded from the artifact package....&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.apache.hadoop&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;hadoop-core&amp;lt;/artifactId&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.hadoop&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;hadoop-common&amp;lt;/artifactId&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things started to work as expected hereafter.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 04:35:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/25861#M5397</guid>
      <dc:creator>ppatel11</dc:creator>
      <dc:date>2015-03-25T04:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: On CDH5.3.2, artifacts lib jar precedence over Cloudera Jars</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/28564#M5398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I applied point 1 with following syntax, and still not work:&lt;/P&gt;&lt;P&gt;$ hadoop jar JarName.jar ClassName -D&lt;SPAN&gt;oozie.launcher.mapreduce.task.classpath.user.prece&lt;/SPAN&gt;&lt;SPAN&gt;dence=true param1 param2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case, I have fat-jar with modified parquet lib in it. But cluster always picking default parquet lib in CDH. In standalone mode, my program is running fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:04:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/28564#M5398</guid>
      <dc:creator>nur.majid</dc:creator>
      <dc:date>2015-06-16T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: On CDH5.3.2, artifacts lib jar precedence over Cloudera Jars</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/28586#M5399</link>
      <description>&lt;P&gt;Using the class path precedence is not the correct solution for all cases.&lt;/P&gt;&lt;P&gt;A solution that will work in all cases is to use shading for the classes that you have modified versions of (use maven or gradle to do that).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case you need to shade the parquet classes that you have modified when you package the jar.&lt;/P&gt;&lt;P&gt;Be careful if you change classes like parquet: you could ed up with files that are only readable with your code and force you to keep packaging it with all jobs. That could cause problems later if you decide to use a different method to access the files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wilfred&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 01:14:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/On-CDH5-3-2-artifacts-lib-jar-precedence-over-Cloudera-Jars/m-p/28586#M5399</guid>
      <dc:creator>Wilfred</dc:creator>
      <dc:date>2015-06-17T01:14:55Z</dc:date>
    </item>
  </channel>
</rss>

