<?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: I am unable to run a spark job successfully using Yarn Rest API approach. It gives ClassCastException: org.apache.hadoop.conf.Configuration cannot be cast to org.apache.hadoop.yarn.conf.YarnConfiguration. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/I-am-unable-to-run-a-spark-job-successfully-using-Yarn-Rest/m-p/230947#M192794</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/84205/abhinavkumar2192.html" nodeid="84205"&gt;@Abhinav Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Spark submit is the right way to submit the spark application as spark-submit sets up the correct classpaths for you. If you are running it as java program, then you need to take care of all these setups which would become tricky. And I guess even now you are facing the issue due to incorrect jars in classpath.&lt;/P&gt;&lt;P&gt;Also please help me understand the usecase ? Whats the purpose of launching spark job using yarn rest api ?&lt;/P&gt;&lt;P&gt;If you do simple spark-submit, it will take care of negotiating resources from YARN and to run the application.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 12:33:19 GMT</pubDate>
    <dc:creator>ssharma</dc:creator>
    <dc:date>2018-06-20T12:33:19Z</dc:date>
  </channel>
</rss>

