<?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: Issues with YARN classpath after manual upgrade from 2.1 to 2.2 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161016#M21152</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt;&lt;P&gt;export HADOOP_OPTS="-Dhdp.version=$HDP_VERSION $HADOOP_OPTS" &lt;/P&gt;&lt;P&gt;Do you have those entries in hadoop-env.sh and mapred-env.sh?&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2016 08:22:59 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-27T08:22:59Z</dc:date>
    <item>
      <title>Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161014#M21150</link>
      <description>&lt;P&gt;I am performing a test manual upgrade of 2.1 to 2.2 using instructions at &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.2.0/bk_upgrading_hdp_manually/content/ch_upgrade_2_1.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.2.0/bk_upgrading_hdp_manually/content/ch_upgrade_2_1.html&lt;/A&gt;, and am having issues on step number 8, which is found at &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.2.0/bk_upgrading_hdp_manually/content/configure-yarn-mr-21.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.2.0/bk_upgrading_hdp_manually/content/configure-yarn-mr-21.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When running the following (either with hadoop jar or yarn jar)&lt;/P&gt;&lt;P&gt;hadoop jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-examples.jar randomwriter -Dtest.randomwrite.total_bytes=10000000 test-after-upgrade&lt;/P&gt;&lt;P&gt;I encounter&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;I have tried a couple of different values for yarn.application.classpath in the yarn-site.xml, but no joy. I believe that this class is in /usr/hdp/2.2.0.0-2041/hadoop/client/hadoop-yarn-common.jar, which looks to be in the running config based on output from the tracking url web ui.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM yarn-site.xml (Note: I hardcoded some substitution variables  to ensure that the substitution of hp.version and variable were not the problem, but there was no change)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;name&amp;gt;yarn.application.classpath&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;/etc/hadoop,&lt;/P&gt;&lt;P&gt; /etc/hadoop/conf,&lt;/P&gt;&lt;P&gt;          /usr/hdp/2.2.0.0-2041/hadoop/client/*,&lt;/P&gt;&lt;P&gt;          /usr/hdp/2.2.0.0-2041/hadoop-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-client/lib/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/lib/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-yarn-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-yarn-client/lib/*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM CONFIG VALUES IN MR Tracking URL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;/etc/hadoop,&lt;/P&gt;&lt;P&gt; /etc/hadoop/conf,&lt;/P&gt;&lt;P&gt;          /usr/hdp/2.2.0.0-2041/hadoop/client/*,&lt;/P&gt;&lt;P&gt;          /usr/hdp/2.2.0.0-2041/hadoop-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-client/lib/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/lib/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-yarn-client/*,&lt;/P&gt;&lt;P&gt; /usr/hdp/2.2.0.0-2041/hadoop-yarn-client/lib/*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;source&amp;gt;yarn-site.xml&amp;lt;/source&amp;gt;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;Anyway, looks to me like /usr/hdp/2.2.0.0-2041/hadoop/client/* is in the classpath, which contains the hadoop-yarn-common.jar file, which in turn should contain this class.&lt;/P&gt;&lt;P&gt;Any obvious issues or pointers to drill down further? Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 05:41:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161014#M21150</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-02-27T05:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161015#M21151</link>
      <description>&lt;P&gt;I would contact support as this is not trivial upgrade.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 06:02:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161015#M21151</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-27T06:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161016#M21152</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt;&lt;P&gt;export HADOOP_OPTS="-Dhdp.version=$HDP_VERSION $HADOOP_OPTS" &lt;/P&gt;&lt;P&gt;Do you have those entries in hadoop-env.sh and mapred-env.sh?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 08:22:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161016#M21152</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-27T08:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161017#M21153</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt;, Some of your paths are wrong. You cannot just replace "current" with "2.2.0.0-2041". Based on my directory structure in 2.2.8 all these paths are non-existent:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.2.0.0-2041/hadoop-client/*,
/usr/hdp/2.2.0.0-2041/hadoop-client/lib/*,
/usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/*,
/usr/hdp/2.2.0.0-2041/hadoop-hdfs-client/lib/*,
/usr/hdp/2.2.0.0-2041/hadoop-yarn-client/*,
/usr/hdp/2.2.0.0-2041/hadoop-yarn-client/lib/*&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Feb 2016 10:16:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161017#M21153</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-02-29T10:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161018#M21154</link>
      <description>&lt;P&gt;What a difference one character makes!!! The documentation has colons (like a normal classpath!) at the end of the mapreduce.application.classpath instead of commas. The following is
the documented entry to put into mapred-site.xml.&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt; &amp;lt;name&amp;gt;mapreduce.application.classpath&amp;lt;/name&amp;gt;
 &amp;lt;value&amp;gt;$PWD/mr-framework/hadoop/share/hadoop/mapreduce/*: 
$PWD/mr-framework/hadoop/share/hadoop/mapreduce/lib/*: 
$PWD/mr-framework/hadoop/share/hadoop/common/*: 
$PWD/mr-framework/hadoop/share/hadoop/common/lib/*: 
$PWD/mr-framework/hadoop/share/hadoop/yarn/*: 
$PWD/mr-framework/hadoop/share/hadoop/yarn/lib/*: 
$PWD/mr-framework/hadoop/share/hadoop/hdfs/*: 
$PWD/mr-framework/hadoop/share/hadoop/hdfs/lib/*: 
/usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar: 
/etc/hadoop/conf/secure&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt; According to the
Apache docs, this should be a “A comma-separated list of CLASSPATH entries.”
So, change the colon to a comma, and we are good to go!&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt; &amp;lt;name&amp;gt;mapreduce.application.classpath&amp;lt;/name&amp;gt; &amp;lt;value&amp;gt;$PWD/mr-framework/hadoop/share/hadoop/mapreduce/*, 
$PWD/mr-framework/hadoop/share/hadoop/mapreduce/lib/*, 
$PWD/mr-framework/hadoop/share/hadoop/common/*, 
$PWD/mr-framework/hadoop/share/hadoop/common/lib/*, 
$PWD/mr-framework/hadoop/share/hadoop/yarn/*, 
$PWD/mr-framework/hadoop/share/hadoop/yarn/lib/*, 
$PWD/mr-framework/hadoop/share/hadoop/hdfs/*, 
$PWD/mr-framework/hadoop/share/hadoop/hdfs/lib/*, 
/usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar, 
/etc/hadoop/conf/secure&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;BTW, I ran with the HADOOP_OPTS as suggested, and then removed
this and the job still ran.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 01:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161018#M21154</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-03-02T01:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161019#M21155</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt; I notified the documentation team to fix this. Thanks for catching it. Just to confirm, you replaced colon as stated in the doc with , as in the apache docs and your problem was solved?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 03:29:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161019#M21155</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-02T03:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161020#M21156</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/310/jeff.html" nodeid="310"&gt;@jeff&lt;/A&gt; there's an open Jira, just waiting for validation, internal bug ID BUG-53613&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 02:18:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161020#M21156</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-03-03T02:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with YARN classpath after manual upgrade from 2.1 to 2.2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161021#M21157</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt; - This has been fixed in our documentation, per internal BUG-53613. See &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_upgrading_hdp_manually/content/configure-yarn-mr-23.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_upgrading_hdp_manually/content/configure-yarn-mr-23.html&lt;/A&gt; for a link to the 2.4.2 version. These changes were back ported all the way back to 2.2.8. Thanks for helping us to increase the quality of our documentation. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 01:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issues-with-YARN-classpath-after-manual-upgrade-from-2-1-to/m-p/161021#M21157</guid>
      <dc:creator>plevinson</dc:creator>
      <dc:date>2016-06-23T01:06:56Z</dc:date>
    </item>
  </channel>
</rss>

