<?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: Spark context not implemented Error when using Databricks connect in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/72039#M3342</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106483"&gt;@MightyMasdo&lt;/a&gt;&amp;nbsp;could you please share the screenshot of the error along with the command?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 13:35:08 GMT</pubDate>
    <dc:creator>Yeshwanth</dc:creator>
    <dc:date>2024-06-07T13:35:08Z</dc:date>
    <item>
      <title>Spark context not implemented Error when using Databricks connect</title>
      <link>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/72014#M3341</link>
      <description>&lt;P&gt;I am developing an application using databricks connect and when I try to use VectorAssembler I get the Error sc is not none Assertion Error. is there a workaround for this ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 09:23:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/72014#M3341</guid>
      <dc:creator>MightyMasdo</dc:creator>
      <dc:date>2024-06-07T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spark context not implemented Error when using Databricks connect</title>
      <link>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/72039#M3342</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106483"&gt;@MightyMasdo&lt;/a&gt;&amp;nbsp;could you please share the screenshot of the error along with the command?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 13:35:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/72039#M3342</guid>
      <dc:creator>Yeshwanth</dc:creator>
      <dc:date>2024-06-07T13:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spark context not implemented Error when using Databricks connect</title>
      <link>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/107348#M3928</link>
      <description>&lt;P&gt;I have exactly the same problem.&lt;/P&gt;&lt;P&gt;The error is in the line 84 of the file&amp;nbsp;pyspark/ml/wrapper.py.&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;assert sc is not None&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I create spark session with databricks connect as the following:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;from databricks.connect import DatabricksSession&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;spark = DatabricksSession.builder.remote().getOrCreate()&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The call stack is the following:&lt;/P&gt;&lt;P&gt;My file:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;VectorAssembler(inputCols=..., outputCol=...)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pyspark/__init__.py, line 120, in wrapper&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;return func(self, **kwargs)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pyspark/ml/feature.py, line 5364, in __init__&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;self._java_obj = self._new_java_obj("org.apache.spark.ml.feature.VectorAssembler", self.uid)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pyspark/ml/wrapper.py, line 84, in _new_java_obj&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;assert sc is not None&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pyspark version is 3.5.0&lt;BR /&gt;databricks-connect version is 15.4.4&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 08:02:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/107348#M3928</guid>
      <dc:creator>Łukasz1</dc:creator>
      <dc:date>2025-01-28T08:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spark context not implemented Error when using Databricks connect</title>
      <link>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/135162#M4353</link>
      <description>&lt;P&gt;Ran into exactly the same issue as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146399"&gt;@Łukasz1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After some googling, I found &lt;A href="https://stackoverflow.com/questions/77014538/databricks-connect-missing-sparkcontext" target="_self"&gt;this SO post&lt;/A&gt; explaining the issue: later versions of databricks connect no longer support the SparkContext API. Our code is failing because the underlying library is trying to fetch the SparkContext (sc)&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-connect/python/limitations" target="_self"&gt;The databricks docs&lt;/A&gt; mention this as well.&lt;/P&gt;&lt;P&gt;I haven't worked out a workaround though.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 18:27:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/spark-context-not-implemented-error-when-using-databricks/m-p/135162#M4353</guid>
      <dc:creator>pibe1</dc:creator>
      <dc:date>2025-10-16T18:27:02Z</dc:date>
    </item>
  </channel>
</rss>

