<?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 switching profile when using databricks cli in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90565#M3680</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91840"&gt;@NielsMH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;By default, the Databricks CLI looks for the .databrickscfg file in your ~ (your user home) folder on Unix. You can try to delete this file and run configuration process again.&lt;BR /&gt;You can also use describe command to check what credentials and the source of those credentials are being used by CLI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks auth describe&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I suspect you may have encountered the case described below, which is CLI is&amp;nbsp;&lt;SPAN&gt;inferring host from the bundle in the same path. To check if that's the case run the command above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/cli/issues/1358" target="_blank"&gt;https://github.com/databricks/cli/issues/1358&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:38:45 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2024-09-16T12:38:45Z</dc:date>
    <item>
      <title>problem switching profile when using databricks cli</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90560#M3678</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have installed databricks CLI and have created some different profiles, and havnt had any problems until now. When i try to use a specific profile with my commands using the --profile flag, fx "databricks secrets list-scopes --profile prod" i encounted the following error:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Error: cannot resolve bundle auth configuration: config host mismatch: profile uses host https://adb-1014xxxxxx.xx.azuredatabricks.net, but CLI configured to use adb-1953xxxx.xx.azuredatabricks.net&lt;/LI-CODE&gt;&lt;P&gt;So it seems my databricks cli continues to be linked to my "test" profile somehow.&lt;/P&gt;&lt;P&gt;I have tried to authenticate to the prod workspace, but still encounter the same issue, for my prod profile with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks auth login --host https://adb-1014xxxxxx.xx.azuredatabricks.net &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Im running my databricks cli commands from the ubuntu terminal in wsl2. Anyone have an idea ro resolve this issue?&lt;/P&gt;&lt;P&gt;alternativly how to properly uninstall databricks cli so i can try and set it up again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 11:42:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90560#M3678</guid>
      <dc:creator>NielsMH</dc:creator>
      <dc:date>2024-09-16T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem switching profile when using databricks cli</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90562#M3679</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;It looks like your Databricks CLI is still linked to your “test” profile, causing the host mismatch error. Here are a few steps to resolve this:&lt;/P&gt;&lt;P&gt;Check Configuration: Ensure your .databrickscfg file has the correct host for each profile. You can find this file in your home directory.&lt;BR /&gt;Specify Profile: When running commands, explicitly specify the profile using the --profile flag:&lt;BR /&gt;databricks secrets list-scopes --profile prod&lt;/P&gt;&lt;P&gt;Re-authenticate: Re-authenticate to the correct workspace:&lt;BR /&gt;databricks auth login --host &lt;A href="https://adb-1014xxxxxx.xx.azuredatabricks.net" target="_blank"&gt;https://adb-1014xxxxxx.xx.azuredatabricks.net&lt;/A&gt; --profile prod&lt;/P&gt;&lt;P&gt;Uninstall and Reinstall CLI: If the issue persists, you can uninstall and reinstall the Databricks CLI:&lt;BR /&gt;pip uninstall databricks-cli&lt;BR /&gt;pip install databricks-cli&lt;/P&gt;&lt;P&gt;These steps should help resolve the host mismatch issue.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:16:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90562#M3679</guid>
      <dc:creator>Gail207Martinez</dc:creator>
      <dc:date>2024-09-16T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem switching profile when using databricks cli</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90565#M3680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91840"&gt;@NielsMH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;By default, the Databricks CLI looks for the .databrickscfg file in your ~ (your user home) folder on Unix. You can try to delete this file and run configuration process again.&lt;BR /&gt;You can also use describe command to check what credentials and the source of those credentials are being used by CLI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks auth describe&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I suspect you may have encountered the case described below, which is CLI is&amp;nbsp;&lt;SPAN&gt;inferring host from the bundle in the same path. To check if that's the case run the command above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/cli/issues/1358" target="_blank"&gt;https://github.com/databricks/cli/issues/1358&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:38:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-switching-profile-when-using-databricks-cli/m-p/90565#M3680</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-16T12:38:45Z</dc:date>
    </item>
  </channel>
</rss>

