Reputation: 2269
I've installed and configured the Databricks CLI but get the error below when running
databricks workspace ls
Error Returned:
Error: Your authentication information may be incorrect. Please reconfigure with dbfs configure
Steps Used to Install CLI
1) Installed using pip install databricks-cli
2) Configure with CLI databricks configure --token
. My ~/.databrickscfg
file looks like:
[DEFAULT]
host = https://<account>.cloud.databricks.com
token = <password_generated_from_access_token
Has anyone come across this error and have a solution?
Upvotes: 8
Views: 13322
Reputation: 1
Your access credentials are stored in the file ~/.databrickscfg
on Unix, Linux, or macOS or %USERPROFILE%\.databrickscfg
on Windows. The file contains a default profile entry:
[DEFAULT]
host = <workspace-URL>
token = <Azure-AD-token>
Make sure the .databrickscfg
file is updated.
Upvotes: 0
Reputation: 372
I was also getting the same error. What worked for me is something like this.
databricks configure --token
command in your local system to be able to access the databricks-cli.dapi123....
Upvotes: 10