<?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: YARN service stops when started class not found exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132702#M27312</link>
    <description>&lt;P&gt;I do not have spark installed. In fact I thought that adding the service could possibly solve the issue? I believe spark thing is coming in the picture because it is in the list of auxiliary services. Shall I consider removing it from there?&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2016 14:35:22 GMT</pubDate>
    <dc:creator>sim6</dc:creator>
    <dc:date>2016-05-05T14:35:22Z</dc:date>
    <item>
      <title>YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132698#M27308</link>
      <description>&lt;P&gt;In the logs, I get this classNotFoundException .NodeManager fails in a couple of seconds when started. Rest of the YARN components are working fine except for Nodemanager. YARN service check times out and never completes. &lt;/P&gt;&lt;P&gt;YARN logs:&lt;/P&gt;&lt;P&gt;2016-05-05 12:44:24,449 INFO  event.AsyncDispatcher (AsyncDispatcher.java:register(208)) - Registering &lt;/P&gt;&lt;PRE&gt;2016-05-05 12:44:24,733 WARN  containermanager.AuxServices (AuxServices.java:serviceInit(130)) - The Auxilurary Service named 'mapreduce_shuffle' in the configuration is for class org.apache.hadoop.mapred.ShuffleHandler which has a name of 'httpshuffle'. Because these are not the same tools trying to send ServiceData and read Service Meta Data may have issues unless the refer to the name in the config.
2016-05-05 12:44:24,734 INFO  containermanager.AuxServices (AuxServices.java:addService(72)) - Adding auxiliary service httpshuffle, "mapreduce_shuffle"
2016-05-05 12:44:24,834 FATAL containermanager.AuxServices (AuxServices.java:serviceInit(145)) - Failed to initialize spark_shuffle
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2227)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:121)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:291)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:537)
	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:585)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2219)
	... 10 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)
	... 11 more&lt;/PRE&gt;&lt;P&gt;You can check the complete logs here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://warehouse.swtched.com:8088/logs/yarn-yarn-nodemanager-warehouse.swtched.com.log" target="_blank"&gt;http://warehouse.swtched.com:8088/logs/yarn-yarn-nodemanager-warehouse.swtched.com.log&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:29:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132698#M27308</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-05T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132699#M27309</link>
      <description>&lt;P&gt;its seems that you are running spark on same cluster and you have spark shuffle enable in your yarn-site.xml but it is not there in nodemanager classpath can you find spark shuffle jar at the location /usr/hdp/2.*/spark/lib/spark-*-yarn-shuffle.jar, add this jar to NM classpath and restart the NM&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:30:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132699#M27309</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-05T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132700#M27310</link>
      <description>&lt;P&gt;Hi Simarn,&lt;/P&gt;&lt;P&gt;Seems like you have defined "org.apache.spark.yarn.network.YarnShuffleService" in your yarn-site.xml, but the jar containing that class "spark-&amp;lt;version&amp;gt;-yarn-shuffle.jar" is missing in your nodemanager classpath. Please add it similar to mapreduce_shuffle class.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:32:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132700#M27310</guid>
      <dc:creator>nyadav</dc:creator>
      <dc:date>2016-05-05T14:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132701#M27311</link>
      <description>&lt;P&gt;please review Spark User Guide for the specific class you're missing &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/config-dra-manual.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/config-dra-manual.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:35:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132701#M27311</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-05-05T14:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132702#M27312</link>
      <description>&lt;P&gt;I do not have spark installed. In fact I thought that adding the service could possibly solve the issue? I believe spark thing is coming in the picture because it is in the list of auxiliary services. Shall I consider removing it from there?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:35:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132702#M27312</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-05T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132703#M27313</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;: But should it not have been included automatically rather than I having to add it manually? I have installed YARN before and never really had to add it manually.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:36:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132703#M27313</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-05T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132704#M27314</link>
      <description>&lt;P&gt;consider removing references to Spark in your yarn-site.xml, in Ambari you'd go to configs section and use filter for spark option.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 14:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132704#M27314</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-05-05T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132705#M27315</link>
      <description>&lt;P&gt;yarn-site.xml - having entry like below &lt;/P&gt;&lt;P&gt;    &amp;lt;property&amp;gt; &lt;/P&gt;&lt;P&gt;      &amp;lt;name&amp;gt;yarn.nodemanager.aux-services.spark2_shuffle.classpath&amp;lt;/name&amp;gt; &lt;/P&gt;&lt;P&gt;      &amp;lt;value&amp;gt;/usr/hdp/${hdp.version}/spark2/aux/*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;
    &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;Make sure you have the jar file ("spark-{version}-yarn-shuffle.jar" ) in that above mentioned location. &lt;/P&gt;&lt;P&gt;If not we can create a create directory and copy that file from any other location. &lt;/P&gt;&lt;P&gt;Now it is working fine. &lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 02:25:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132705#M27315</guid>
      <dc:creator>jkumarmcse</dc:creator>
      <dc:date>2017-05-18T02:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132706#M27316</link>
      <description>&lt;P&gt;I got stucked with same issue. I just copy the spark-2.1.1.2.6.1.0-129-yarn-shuffle.jar in /usr/hdp/2.6.1.0-129/spark/aux location. It is working fine &lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 18:04:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132706#M27316</guid>
      <dc:creator>dattaningole</dc:creator>
      <dc:date>2017-12-27T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: YARN service stops when started class not found exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132707#M27317</link>
      <description>&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;I would like share that this has been fixed by changing yarn-site.xml file.&lt;/P&gt;&lt;P&gt;OLD Parameters -&lt;/P&gt;
&lt;PRE&gt;&amp;lt;code&amp;gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;yarn.nodemanager.aux-services&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;mapreduce_shuffle,spark_shuffle,spark2_shuffle&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;New Parameters&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;  &amp;lt;name&amp;gt;yarn.nodemanager.aux-services&amp;lt;/name&amp;gt;&lt;BR /&gt;  &amp;lt;value&amp;gt;mapreduce_shuffle&amp;lt;/value&amp;gt;&lt;BR /&gt;  &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;Please Note  - this is for those users who has install Yarn+MRV2 and not for spark &amp;amp; spark 2.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;
Pawan Giri&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 20:18:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-service-stops-when-started-class-not-found-exception/m-p/132707#M27317</guid>
      <dc:creator>giri_pawan0206</dc:creator>
      <dc:date>2019-02-07T20:18:06Z</dc:date>
    </item>
  </channel>
</rss>

