<?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 The Spark session could not be created in the cluster for CDP 7 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/344781#M234276</link>
    <description>&lt;P&gt;I have set up &lt;STRONG&gt;Cloudera Manager (Trial) 7.4.4&amp;nbsp;&lt;/STRONG&gt; in &lt;STRONG&gt;Ubuntu&amp;nbsp;20.04.4 LTS (Focal Fossa)&amp;nbsp;&lt;/STRONG&gt;as a &lt;STRONG&gt;single node cluster&lt;/STRONG&gt; in AWS EC2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the services HDFS, Hue , Hive , Spark , Livy , Solr , ZooKeeper , Yarn are in good health and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can login to Hue editor and open spark notebook.&amp;nbsp;But I'm getting the issue as&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The Spark session could not be created in the cluster&lt;/STRONG&gt;&lt;/FONT&gt; when trying to execute notebook.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sss123_2-1654067083258.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34486i2EAAB3D4C40AFF49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sss123_2-1654067083258.png" alt="sss123_2-1654067083258.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;The Spark session could not be created in the cluster: at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898) at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:144) at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184) at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86) at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:922) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:931) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) 22/06/01 06:32:29 INFO util.ShutdownHookManager: Shutdown hook called 22/06/01 06:32:29 INFO util.ShutdownHookManager: Deleting directory /tmp/spark-84563e48-b47b-4c3e-ab3d-4f25bb31a036 YARN Diagnostics&lt;/FONT&gt;:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 07:55:37 GMT</pubDate>
    <dc:creator>sss123</dc:creator>
    <dc:date>2026-04-21T07:55:37Z</dc:date>
    <item>
      <title>The Spark session could not be created in the cluster for CDP 7</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/344781#M234276</link>
      <description>&lt;P&gt;I have set up &lt;STRONG&gt;Cloudera Manager (Trial) 7.4.4&amp;nbsp;&lt;/STRONG&gt; in &lt;STRONG&gt;Ubuntu&amp;nbsp;20.04.4 LTS (Focal Fossa)&amp;nbsp;&lt;/STRONG&gt;as a &lt;STRONG&gt;single node cluster&lt;/STRONG&gt; in AWS EC2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the services HDFS, Hue , Hive , Spark , Livy , Solr , ZooKeeper , Yarn are in good health and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can login to Hue editor and open spark notebook.&amp;nbsp;But I'm getting the issue as&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The Spark session could not be created in the cluster&lt;/STRONG&gt;&lt;/FONT&gt; when trying to execute notebook.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sss123_2-1654067083258.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34486i2EAAB3D4C40AFF49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sss123_2-1654067083258.png" alt="sss123_2-1654067083258.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;The Spark session could not be created in the cluster: at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898) at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:144) at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184) at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86) at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:922) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:931) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) 22/06/01 06:32:29 INFO util.ShutdownHookManager: Shutdown hook called 22/06/01 06:32:29 INFO util.ShutdownHookManager: Deleting directory /tmp/spark-84563e48-b47b-4c3e-ab3d-4f25bb31a036 YARN Diagnostics&lt;/FONT&gt;:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:55:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/344781#M234276</guid>
      <dc:creator>sss123</dc:creator>
      <dc:date>2026-04-21T07:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: The Spark session could not be created in the cluster for CDP 7</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/346410#M234867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97540"&gt;@sss123&lt;/a&gt;,&amp;nbsp;this seems to be a bug. Please refer to &lt;A href="https://issues.cloudera.org/browse/LIVY-3" target="_blank"&gt;https://issues.cloudera.org/browse/LIVY-3&lt;/A&gt;.&amp;nbsp;Kindly note that Spark Notebook is not currently supported. Also please review the discussion in &lt;A href="https://github.com/cloudera/hue/issues/254" target="_blank"&gt;https://github.com/cloudera/hue/issues/254&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 22:16:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/346410#M234867</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2022-06-27T22:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: The Spark session could not be created in the cluster for CDP 7</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/358437#M237849</link>
      <description>&lt;P&gt;create a directory for the user in HDFS......&lt;/P&gt;&lt;P&gt;hadoop create a staging directory for storing job execution files.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:20:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/358437#M237849</guid>
      <dc:creator>m5a</dc:creator>
      <dc:date>2022-11-28T11:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: The Spark session could not be created in the cluster for CDP 7</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/358824#M237946</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97540"&gt;@sss123&lt;/a&gt;&amp;nbsp; Are you able to run spark commands via spark-shell spark-submit?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 17:44:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Spark-session-could-not-be-created-in-the-cluster-for/m-p/358824#M237946</guid>
      <dc:creator>AsimShaikh</dc:creator>
      <dc:date>2022-12-02T17:44:50Z</dc:date>
    </item>
  </channel>
</rss>

