11-09-2021 05:55 AM
How to access databricks secret in global ini file. {{secrets/scope/key}} doesnt work. Do i have to put that inside quotes
11-15-2021 11:43 PM
Hi @SEBIN THOMAS ,
Here are the steps to access secrets in databricks initscript:
Sample ini code:
fs.azure.account.auth.type.chepragen2.dfs.core.windows.net OAuth
fs.azure.account.oauth.provider.type.chepragen2.dfs.core.windows.net org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider
fs.azure.account.oauth2.client.id.chepragen2.dfs.core.windows.net {<!-- -->{secrets/KeyVaultName/ClientID}}
fs.azure.account.oauth2.client.secret.chepragen2.dfs.core.windows.net {<!-- -->{secrets/KeyVaultName/ClientSecret}}
fs.azure.account.oauth2.client.endpoint.chepragen2.dfs.core.windows.net https://login.microsoftonline.com/<Directory_ID>/oauth2/token
You can also go through the link for more details:-
11-09-2021 06:32 AM
Hi @ Sebastian! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.
11-10-2021 03:39 AM
I think we need more details. Are you reading SAP Hana data in databricks? or reverse? As global.ini is something related to SAP
https://blogs.sap.com/2019/10/24/your-sap-on-azure-part-22-read-sap-hana-data-from-azure-databricks/
11-12-2021 03:54 PM
hi @SEBIN THOMAS ,
I would like to share the docs here are you getting any error messages? like @Hubert Dudek mentioned, please share more details and error message in case you are getting any.
11-12-2021 04:09 PM
Thanks everyone
Do you have a sample ini script that access secrets. It’s more like a syntax issue
i managed with spark ini config of the cluster rather than through ini script
11-15-2021 11:43 PM
Hi @SEBIN THOMAS ,
Here are the steps to access secrets in databricks initscript:
Sample ini code:
fs.azure.account.auth.type.chepragen2.dfs.core.windows.net OAuth
fs.azure.account.oauth.provider.type.chepragen2.dfs.core.windows.net org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider
fs.azure.account.oauth2.client.id.chepragen2.dfs.core.windows.net {<!-- -->{secrets/KeyVaultName/ClientID}}
fs.azure.account.oauth2.client.secret.chepragen2.dfs.core.windows.net {<!-- -->{secrets/KeyVaultName/ClientSecret}}
fs.azure.account.oauth2.client.endpoint.chepragen2.dfs.core.windows.net https://login.microsoftonline.com/<Directory_ID>/oauth2/token
You can also go through the link for more details:-
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group