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 our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.