<?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/230948#M192795</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11608/ssharma.html" nodeid="11608"&gt;@ssharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Actually, I wanted to submit the spark job remotely (irrespective of the spark version there, from the host where I am submitting the job) but with the spark-submit command, I think this will not be possible, that is why I wanted to run a job successfully using java command.&lt;/P&gt;&lt;P&gt;My use case is to run a spark job remotely to any environment which can have any version of spark, from local where I will have a fixed spark version (let say 2.2.0)&lt;/P&gt;&lt;P&gt;@ssharma, I was referring to &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_yarn-resource-management/content/ch_yarn_rest_apis.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_yarn-resource-management/content/ch_yarn_rest_apis.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I was also trying to submit the spark job in the same way. That was for Spark 1.6, now  I am trying to run for Spark 2.2. Is there any change done which you are aware of?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 13:53:18 GMT</pubDate>
    <dc:creator>abhinavkumar219</dc:creator>
    <dc:date>2018-06-20T13:53:18Z</dc:date>
  </channel>
</rss>

