<?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: Problem in VS Code Extention in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135378#M50334</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164754"&gt;@DatabricksEngi1&lt;/a&gt;&amp;nbsp;-&amp;nbsp;Please &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-connect/python/install#activate-a-python-virtual-environment" target="_self"&gt;ensure&lt;/A&gt; you have a Python Venv set up for each Python version that you use with Databricks Connect. Also, I have given &lt;A href="https://github.com/dipankarkush-db/dbcommunity/tree/main/dbconnect" target="_self"&gt;step-by-step&lt;/A&gt; ways to debug the issue, clear the cache, etc &lt;EM&gt;&lt;STRONG&gt;[Read the files and instructions carefully before running them&lt;/STRONG&gt;&lt;/EM&gt;]. Here is the code that I tested, switching between serverless and classic compute. And also my profile entry for your reference. Since cluster_id is already there in the profile I do not need to mention that in the code -&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from databricks.connect import DatabricksSession

# Option 1: Use cluster_id from .databrickscfg automatically
# Since your [fielddemo] profile has cluster_id configured, just use the profile
spark = DatabricksSession.builder.profile("fielddemo").getOrCreate()

# Option 2: Use serverless compute
# spark = DatabricksSession.builder.profile("fielddemo").serverless().getOrCreate()

df = spark.read.table("dkushari_uc.dais2025.customers_iceberg")
df.show(5)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[fielddemo]
host             = https://workspace.cloud.databricks.com/
token            = dapiXXXXX
jobs-api-version = 2.0
cluster_id       = XXXX-12345-xxxxxx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Oct 2025 14:29:39 GMT</pubDate>
    <dc:creator>dkushari</dc:creator>
    <dc:date>2025-10-19T14:29:39Z</dc:date>
    <item>
      <title>Problem in VS Code Extention</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135358#M50330</link>
      <description>&lt;P&gt;Until a few days ago, I was working with &lt;STRONG&gt;Databricks Connect using the &lt;STRONG&gt;VS Code extension, and everything worked perfectly.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my .databrickscfg file, I had authentication configured like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;[name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;host:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;token:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;When I ran my code, everything worked fine - it connected to &lt;STRONG&gt;Serverless by default.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, I added a new authentication profile in .databrickscfg because I wanted to use a &lt;STRONG&gt;specific cluster instead of Serverless:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;[name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;host:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;token:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;cluster_id:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Since then, I haven’t been able to run any code from VS Code.&lt;BR /&gt;I keep getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;[CONNECT_URL_NOT_SET] Cannot &lt;SPAN class=""&gt;create a Spark &lt;SPAN class=""&gt;Connect &lt;SPAN class=""&gt;session because the Spark &lt;SPAN class=""&gt;Connect remote URL has &lt;SPAN class=""&gt;not been &lt;SPAN class=""&gt;set. Please define the remote URL &lt;SPAN class=""&gt;by setting either the &lt;SPAN class=""&gt;'spark.remote' &lt;SPAN class=""&gt;option &lt;SPAN class=""&gt;or the &lt;SPAN class=""&gt;'SPARK_REMOTE' environment variable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Even after reverting .databrickscfg to the previous working configuration, it still doesn’t work.&lt;/P&gt;&lt;P&gt;I also tried setting the &lt;STRONG&gt;SPARK_REMOTE environment variable (which I hadn’t done before), but now the code starts running and then fails after about a minute with a “maximum retries exceeded” message.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this issue or knows how to fix it?&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Oct 2025 04:17:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135358#M50330</guid>
      <dc:creator>DatabricksEngi1</dc:creator>
      <dc:date>2025-10-19T04:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VS Code Extention</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135375#M50332</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164754"&gt;@DatabricksEngi1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;What's the DBR version and DB connect version you are using?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CONNECT&lt;/SPAN&gt;&lt;SPAN&gt;_URL_NOT_SET occurs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;when&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;creating&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Spark&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Connect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;session&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;without&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;specifying the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;connect&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;URL. I think you have fallen into DB Connect’s config-resolution rules, or the cfg file is somehow broken. I tried this internally, and it works fine for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 13:48:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135375#M50332</guid>
      <dc:creator>K_Anudeep</dc:creator>
      <dc:date>2025-10-19T13:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VS Code Extention</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135378#M50334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164754"&gt;@DatabricksEngi1&lt;/a&gt;&amp;nbsp;-&amp;nbsp;Please &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-connect/python/install#activate-a-python-virtual-environment" target="_self"&gt;ensure&lt;/A&gt; you have a Python Venv set up for each Python version that you use with Databricks Connect. Also, I have given &lt;A href="https://github.com/dipankarkush-db/dbcommunity/tree/main/dbconnect" target="_self"&gt;step-by-step&lt;/A&gt; ways to debug the issue, clear the cache, etc &lt;EM&gt;&lt;STRONG&gt;[Read the files and instructions carefully before running them&lt;/STRONG&gt;&lt;/EM&gt;]. Here is the code that I tested, switching between serverless and classic compute. And also my profile entry for your reference. Since cluster_id is already there in the profile I do not need to mention that in the code -&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from databricks.connect import DatabricksSession

# Option 1: Use cluster_id from .databrickscfg automatically
# Since your [fielddemo] profile has cluster_id configured, just use the profile
spark = DatabricksSession.builder.profile("fielddemo").getOrCreate()

# Option 2: Use serverless compute
# spark = DatabricksSession.builder.profile("fielddemo").serverless().getOrCreate()

df = spark.read.table("dkushari_uc.dais2025.customers_iceberg")
df.show(5)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[fielddemo]
host             = https://workspace.cloud.databricks.com/
token            = dapiXXXXX
jobs-api-version = 2.0
cluster_id       = XXXX-12345-xxxxxx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 14:29:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135378#M50334</guid>
      <dc:creator>dkushari</dc:creator>
      <dc:date>2025-10-19T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VS Code Extention</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135391#M50342</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;I’m currently on Databricks Connect 15.4.10, and the DBR of the cluster I tried to run on is 17.0.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 06:09:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135391#M50342</guid>
      <dc:creator>DatabricksEngi1</dc:creator>
      <dc:date>2025-10-20T06:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VS Code Extention</title>
      <link>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135399#M50344</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;I cloned the repo to a new folder and reinstalled the venv and databricks connect. It works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 07:56:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problem-in-vs-code-extention/m-p/135399#M50344</guid>
      <dc:creator>DatabricksEngi1</dc:creator>
      <dc:date>2025-10-20T07:56:55Z</dc:date>
    </item>
  </channel>
</rss>

