# DataBricks Secrete Scope ## Step1 左下角齒輪 Setting > User Setting > Create New Token ## Step2 設定要連線的databricks workspace (需輸入workspace url及token) 僅需在第一次使用時執行 ``` %sh databricks configure --token <<! https://adb-4426548053592076.16.azuredatabricks.net token ! ``` ## Step3 查詢workspace裡有哪些cluster, 確認連到的workspace是否正確 ``` %sh databricks clusters list ``` ## Step4 查詢scope中有多少key ``` %sh databricks secrets list --scope "mds_mart_migrate" ``` ## Step5 取用Key的方法 python(print也看不到實際的值) ``` LAST01TX4Y_M_B=dbutils.secrets.get('mds_mart_migrate','LAST01TX4Y-M-B') ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up