Authenticate Databricks REST API and access delta tables from external web service.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 05:52 AM
Hi All,
We do have a requirement to access delta tables from external web service(Web UI). Presently we have tested it through jdbc connection and authenticated using PAT:
Ex. jdbc:spark://[DATABRICKS_HOST]:443/default;transportMode=http;ssl=1;httpPath=[DATABRICKS_HTTP_PATH];AuthMech=3;UID=token;PWD=<personal-access-token>
Now, we are planning to implement it through Service Principal with Azure AD token that can expire within 1 hour.
My question is:
1. Do we need any management token other than Azure AD token(created for Service Principal) to access tables from external web service?
2. If yes, could you please share some example link.
3. Can we use this Service Principal and Azure AD token to create new DB pipeline (jenkins CI/CD) : Existing is(Azure Resource Token+ PAT token)
4. Any 'Best Practice' to access delta tables from external web service.