<?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: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52588#M57697</link>
    <description>&lt;P&gt;My bad. I forgot to deploy, stale configuration after making the changes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CM &amp;gt; Yarn &amp;gt; Configuration &amp;gt; Gateway Client Environment Advanced Configuration Snippet (Safety Valve) &amp;nbsp;works fine. I am able to override the default jars&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 17:21:05 GMT</pubDate>
    <dc:creator>MangeshVC</dc:creator>
    <dc:date>2017-03-23T17:21:05Z</dc:date>
    <item>
      <title>Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIRST</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52485#M57692</link>
      <description>&lt;P&gt;Where do i update HADOOP_USER_CLASSPATH_FIRST=true and HADOOP_CLASSPATH in cloudera manager so that it has cluster wide effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I manually changed the seeting in /etc/hadoop/conf/hadoop-env.sh. However, i dont see that effect. Basically, i want to prepend classpath when starting hiveserver2 and metastore. This works fine on HDP when these parameters are set in&amp;nbsp;&lt;SPAN&gt;hadoop-env.sh via ambari.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:18:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52485#M57692</guid>
      <dc:creator>MangeshVC</dc:creator>
      <dc:date>2022-09-16T11:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52570#M57693</link>
      <description>Try to go to:&lt;BR /&gt;&lt;BR /&gt;CM &amp;gt; Hive &amp;gt; Configuration &amp;gt; search for "Hive Service Environment Advanced Configuration Snippet (Safety Valve)"&lt;BR /&gt;&lt;BR /&gt;and put in environment settings you want to update here.&lt;BR /&gt;&lt;BR /&gt;Cloudera Manager will then ask you to restart Hive service. This will affect both HS2 and HMS.</description>
      <pubDate>Thu, 23 Mar 2017 11:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52570#M57693</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-03-23T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52581#M57694</link>
      <description>&lt;P&gt;I also want to override jars when i run mapreduce job. That is when i run wordcount example using hadoop as well as yarn. Where do i place these variables in cloudera manager ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following option:&lt;/P&gt;&lt;P&gt;CM &amp;gt; Yarn &amp;gt; Congihuration &amp;gt; search for "YARN (MR2 Included) Service Environment Advanced Configuration Snippet (Safety Valve)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not help. It still picks the old jars&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 16:36:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52581#M57694</guid>
      <dc:creator>MangeshVC</dc:creator>
      <dc:date>2017-03-23T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52586#M57695</link>
      <description>"Service Environment" applies to services, i.e. roles you run via CM. For&lt;BR /&gt;clients, use the equivalent "Client Environment" valve.&lt;BR /&gt;&lt;BR /&gt;FWIW, the Cloudera Manager introduction page goes over the terminology it&lt;BR /&gt;uses to classify different layers of configuration:&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cm_intro_primer.html#concept_wfj_tny_jk" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cm_intro_primer.html#concept_wfj_tny_jk&lt;/A&gt;.&lt;BR /&gt;In your case, clients would mean gateways.&lt;BR /&gt;&lt;BR /&gt;P.s. Typically a bad idea to override system jar versions, as the&lt;BR /&gt;software's been compiled with the version that was included along. Any&lt;BR /&gt;incompatible changes to methods or availability of classes within the&lt;BR /&gt;changed version you're forcing the classloader to pick would cause runtime&lt;BR /&gt;failures (NoSuchMethodError, NoClassDefFound, ClassNotFoundException, etc.).&lt;BR /&gt;P.p.s. If overriding some pre-included library is the prime purpose, try to&lt;BR /&gt;use Maven shading with namespace relocation:&lt;BR /&gt;&lt;A href="https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html" target="_blank"&gt;https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2017 16:48:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52586#M57695</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-03-23T16:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52587#M57696</link>
      <description>&lt;P&gt;Which client environment ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the following option:&lt;/P&gt;&lt;P&gt;CM &amp;gt; Yarn &amp;gt; Configuration &amp;gt; Gateway Client Environment Advanced Configuration Snippet (Safety Valve) for hadoop-env.sh&lt;/P&gt;&lt;P&gt;It has no effect. It is still picks the default library, not the one which i am trying to override.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Service Environment Advanced Configuration works fine in case of hive.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 17:10:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52587#M57696</guid>
      <dc:creator>MangeshVC</dc:creator>
      <dc:date>2017-03-23T17:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52588#M57697</link>
      <description>&lt;P&gt;My bad. I forgot to deploy, stale configuration after making the changes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CM &amp;gt; Yarn &amp;gt; Configuration &amp;gt; Gateway Client Environment Advanced Configuration Snippet (Safety Valve) &amp;nbsp;works fine. I am able to override the default jars&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 17:21:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52588#M57697</guid>
      <dc:creator>MangeshVC</dc:creator>
      <dc:date>2017-03-23T17:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52590#M57698</link>
      <description>That's the right one, but you'll need to perform a cluster-wide client&lt;BR /&gt;configuration redeploy to have it go to your local gateway configuration:&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=4S9H3wftM_0" target="_blank"&gt;https://www.youtube.com/watch?v=4S9H3wftM_0&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2017 17:21:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/52590#M57698</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-03-23T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration setting via Cloudera Manager to set HADOOP_CLASSPATH and HADOOP_USER_CLASSPATH_FIR</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/85803#M57699</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/213"&gt;@Harsh J&lt;/a&gt;&amp;nbsp;How&amp;nbsp; would I do this&amp;nbsp; &amp;nbsp;just for&amp;nbsp; &amp;nbsp;one job ?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using&amp;nbsp; below&amp;nbsp; setting but it is not working. The issue is that I want to&amp;nbsp; use a version of jersey which I bundled into my fat jar,however&amp;nbsp; gateway node&amp;nbsp; has an older version of&amp;nbsp; that jar and it loads a class from&amp;nbsp; there resulting in a NosSuchMethodException .My application is not a map reduce job and I run it by using&amp;nbsp; hadoop jar and running on&amp;nbsp;5.14.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;export HADOOP_USER_CLASSPATH_FIRST=true&lt;/P&gt;&lt;P&gt;export HADOOP_CLASSPATH=/projects/poc/test/config:$HADOOP_CLASSPATH&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 22:39:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuration-setting-via-Cloudera-Manager-to-set-HADOOP/m-p/85803#M57699</guid>
      <dc:creator>Nishan</dc:creator>
      <dc:date>2019-02-01T22:39:17Z</dc:date>
    </item>
  </channel>
</rss>

