-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Databricks cli api command is not able to "configure default credentials" #1710
Comments
@AHJiapengZhang are the hosts for all these profiles are the same? if not, which one do you have configured in bundles? Also, please try to use the latest CLI version (0.227.0) and run |
@andrewnester
If I move out of the current folder(it contains serveral databricks bundle yamls), I will get :
and the result for :
|
So the first error relates to this issue and we're working on it #1358 The last one seems to be related to the different way we handle auth for API command group. Just to confirm, does |
@andrewnester Same as |
@AHJiapengZhang you have to choose a profile to use because there is no default profile configured in your databricks config. You then can use the same profile in your |
Describe the issue
I have my profile configured at
~/.databrickscfg
and it works well on databricks bundle but not api.My
~/.databrickscfg
looks like this:Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
1.Run
databricks api get /api/2.0/clusters/list
2. Error: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method
Expected Behavior
Clear and concise description of what should have happened
Actual Behavior
Clear and concise description of what actually happened
OS and CLI version
MacOS
Databricks cli version 0.215.0
Is this a regression?
Did this work in a previous version of the CLI? If so, which versions did you try?
Debug Logs
15:04:08 INFO start pid=37071 version=0.215.0 args="databricks, api, get, /api/2.0/clusters/list, --debug"
15:04:08 DEBUG /Users/xxx/.databrickscfg has no DEFAULT profile configured pid=37071 sdk=true
15:04:08 DEBUG failed during request visitor: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method pid=37071 sdk=true
Error: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method
15:04:08 ERROR failed execution pid=37071 exit_code=1 error="default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method"
The text was updated successfully, but these errors were encountered: