<?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 Yarn.application.classpath issue in cloudera cdh4.4.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Yarn-application-classpath-issue-in-cloudera-cdh4-4-0/m-p/8374#M1489</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have cloudera VM cdh4.4.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to submit jobs with the yarn command but not with as a Java application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue i faced is by default the&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;yarn.application.classpath is set as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$HADOOP_CONF_DIR, $HADOOP_COMMON_HOME/share/hadoop/common/*, $HADOOP_COMMON_HOME/share/hadoop/common/lib/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*, $HADOOP_YARN_HOME/share/hadoop/yarn/*, $HADOOP_YARN_HOME/share/hadoop/yarn/lib/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but with this classpath , after i submitted my job the container fails to start without any message e.g. classnotfounderror, it just silently fails and remove all the container logs with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By setting the yarn.application.classpath from yarn-site.xml from hadoop-yarn configuration it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you tell me what is the best way to set this classpath and if cloudera installation should create links so that the default classpath works?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sethi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:56:34 GMT</pubDate>
    <dc:creator>sethi</dc:creator>
    <dc:date>2022-09-16T08:56:34Z</dc:date>
    <item>
      <title>Yarn.application.classpath issue in cloudera cdh4.4.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Yarn-application-classpath-issue-in-cloudera-cdh4-4-0/m-p/8374#M1489</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have cloudera VM cdh4.4.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to submit jobs with the yarn command but not with as a Java application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue i faced is by default the&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;yarn.application.classpath is set as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$HADOOP_CONF_DIR, $HADOOP_COMMON_HOME/share/hadoop/common/*, $HADOOP_COMMON_HOME/share/hadoop/common/lib/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/*, $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*, $HADOOP_YARN_HOME/share/hadoop/yarn/*, $HADOOP_YARN_HOME/share/hadoop/yarn/lib/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but with this classpath , after i submitted my job the container fails to start without any message e.g. classnotfounderror, it just silently fails and remove all the container logs with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By setting the yarn.application.classpath from yarn-site.xml from hadoop-yarn configuration it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you tell me what is the best way to set this classpath and if cloudera installation should create links so that the default classpath works?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sethi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:56:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Yarn-application-classpath-issue-in-cloudera-cdh4-4-0/m-p/8374#M1489</guid>
      <dc:creator>sethi</dc:creator>
      <dc:date>2022-09-16T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn.application.classpath issue in cloudera cdh4.4.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Yarn-application-classpath-issue-in-cloudera-cdh4-4-0/m-p/8402#M1490</link>
      <description>Can you go into CM, and add "/etc/hadoop/conf" as the *very first* entry in&lt;BR /&gt;yarn.application.classpath? (You'll need to click on the plus sign an move&lt;BR /&gt;$HADOOP_CONF_DIR to the next slot. YARN restart is required.)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2014 17:44:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Yarn-application-classpath-issue-in-cloudera-cdh4-4-0/m-p/8402#M1490</guid>
      <dc:creator>bcwalrus</dc:creator>
      <dc:date>2014-04-03T17:44:09Z</dc:date>
    </item>
  </channel>
</rss>

