-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Open
Labels
area:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:databricks
Description
Apache Airflow Provider(s)
databricks
Versions of Apache Airflow Providers
apache-airflow-providers-databricks==6.2.0
Apache Airflow version
2.10.4
Operating System
Azure Kubernetes Service / Ubuntu 22.04
Deployment
Official Apache Airflow Helm Chart
Deployment details
Using official helm chart of Apache Airflow (v. 2.10.4 - Python 3.9), but this should be independent of the exact deployment.
What happened
Using databricks operator with a AIRFLOW_CONN_ environment in the form databricks://{SERVICE_PRINCIPAL_ID}:{SERVICE_PRINCIPAL_OAUTH_TOKEN}@{DATABRICKS_HOST}?service_principal_oauth=true results in
"Invalid URL '{DATABRICKS_HOST}/oidc/v1/token': No scheme supplied. Perhaps you meant 'https://{DATABRICKS_HOST}/oidc/v1/token'?"
What you think should happen instead
The OAUTH token request should be sent to a URL with scheme provided.
How to reproduce
- Create an Azure Service Principal and import it into Azure Databricks (this should also work with Databricks managed SPs)
- Create an OAUTH secret in Databricks
- Provide the respective AIRFLOW_CONN_ string as described above (e.g.
AIRFLOW_CONN_DATABRICKS_DEFAULT=databricks://{SERVICE_PRINCIPAL_ID}:{SERVICE_PRINCIPAL_OAUTH_TOKEN}@{DATABRICKS_HOST}?service_principal_oauth=true - Use any Databricks operator that needs to authenticate, e.g.
DatabricksRunNowOperatorto get the error
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:databricks