โ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