Vzzarr
Vzzarr

Reputation: 5700

Error: cannot resolve bundle auth configuration: config host mismatch

I'm trying to run Databricks CLI databricks --profile dev bundle validate --target dev but I'm getting the following error message:

Error: cannot resolve bundle auth configuration: config host mismatch: 
profile uses host https://my-production.cloud.databricks.com, 
but CLI configured to use https://my-dev.cloud.databricks.com

How to resolve?

Upvotes: 0

Views: 50

Answers (1)

Vzzarr
Vzzarr

Reputation: 5700

I realised that there was a misconfiguration when I run databricks configure previously and to fix it I had to manually edit the .databrickscfg file:

nano ~/.databrickscfg

I realised it was set as:

[dev]
host      = https://my-production.cloud.databricks.com
auth_type = databricks-cli

So after correctly setting it to the Dev host I got in the error message it resumed working.

Upvotes: 0

Related Questions