<?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>topic Re: SqlContext in DBR 14.3 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/82147#M36538</link>
    <description>&lt;P&gt;I have the same issue with sparkContext. I noticed that it only works on single user access mode.&lt;/P&gt;&lt;P&gt;Are there any known fixes/workaround for other access modes?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 09:24:30 GMT</pubDate>
    <dc:creator>biauy</dc:creator>
    <dc:date>2024-08-07T09:24:30Z</dc:date>
    <item>
      <title>SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/66102#M33021</link>
      <description>&lt;P&gt;I have a Databricks workspace in GCP and I am using the cluster with the Runtime 14.3 LTS (includes Apache Spark 3.5.0, Scala 2.12). I am trying to set the checkpoint directory location using the following command in a notebook:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;spark.sparkContext.setCheckpointDir("/FileStore/checkpoint")&lt;/LI-CODE&gt;&lt;P&gt;The sparkSession used here is the default that is init within the notebook. But I get the following error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[JVM_ATTRIBUTE_NOT_SUPPORTED] Attribute `sparkContext` is not supported in Spark
Connect as it depends on the JVM. If you need to use this attribute, do not use Spark
Connect when creating your session. Visit https://spark.apache.org/docs/latest/sql-
getting-started.html#starting-point-sparksession for creating regular Spark Session in detail.&lt;/LI-CODE&gt;&lt;P&gt;It seems in from spark 3.4 we have a spark connect object instead of the the regular sparkSession which does not have the sparkContext attribute. So, as suggested by the error I try to create a spark session using the following and then set the checkpoint directory:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark.sql import SparkSession

sc = SparkSession \
.builder \
.appName("Python Spark SQL basic example") \
.getOrCreate()
sc.sparkContext.setCheckpointDir("/FileStore/checkpoint")&lt;/LI-CODE&gt;&lt;P&gt;But I get the same exact error? How do I use the sparkContext attribute in this version of spark and DBR?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 05:17:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/66102#M33021</guid>
      <dc:creator>tariq</dc:creator>
      <dc:date>2024-04-12T05:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/67626#M33391</link>
      <description>&lt;P&gt;is this error also happening on other DBR versions or only this version shows this message?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 21:59:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/67626#M33391</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2024-04-29T21:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/71324#M34288</link>
      <description>&lt;P&gt;Is this fixed on 14.3 DBR. I am also facing the same when using in Azure Databricks. I am just using df.rdd.getNumPartitions()&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sudipto84goswam_0-1717251149018.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7994i27F820834D62C9FF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="sudipto84goswam_0-1717251149018.png" alt="sudipto84goswam_0-1717251149018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 14:13:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/71324#M34288</guid>
      <dc:creator>sudipto84goswam</dc:creator>
      <dc:date>2024-06-01T14:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/78823#M35608</link>
      <description>&lt;P&gt;Same issue with broadcast too. Do you have a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:50:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/78823#M35608</guid>
      <dc:creator>RamlaSuhra</dc:creator>
      <dc:date>2024-07-15T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/82147#M36538</link>
      <description>&lt;P&gt;I have the same issue with sparkContext. I noticed that it only works on single user access mode.&lt;/P&gt;&lt;P&gt;Are there any known fixes/workaround for other access modes?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:24:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/82147#M36538</guid>
      <dc:creator>biauy</dc:creator>
      <dc:date>2024-08-07T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/83938#M37078</link>
      <description>&lt;P&gt;Has this been resolved, I am encountering the same issue with&amp;nbsp;&lt;SPAN&gt;df.rdd.getNumPartitions()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:17:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/83938#M37078</guid>
      <dc:creator>Dave1967</dc:creator>
      <dc:date>2024-08-22T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: SqlContext in DBR 14.3</title>
      <link>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/126658#M47730</link>
      <description>&lt;P&gt;Has this been resolved? I'm also encountering the same issue with&amp;nbsp;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sparkContext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;parallelize&lt;/SPAN&gt;&lt;SPAN&gt;(). My code is verifiably running on a single user access cluster.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 09:31:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sqlcontext-in-dbr-14-3/m-p/126658#M47730</guid>
      <dc:creator>Sjors</dc:creator>
      <dc:date>2025-07-28T09:31:25Z</dc:date>
    </item>
  </channel>
</rss>

