- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 05:16 AM
Hello!
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:
Check Configuration: Ensure your .databrickscfg file has the correct host for each profile. You can find this file in your home directory.
Specify Profile: When running commands, explicitly specify the profile using the --profile flag:
databricks secrets list-scopes --profile prod
Re-authenticate: Re-authenticate to the correct workspace:
databricks auth login --host https://adb-1014xxxxxx.xx.azuredatabricks.net --profile prod
Uninstall and Reinstall CLI: If the issue persists, you can uninstall and reinstall the Databricks CLI:
pip uninstall databricks-cli
pip install databricks-cli
These steps should help resolve the host mismatch issue.
Good luck!