![](/img/trans.png)
[英]How to retrieve .dcm image files from the ADLS gen2 using Azure Synapse and pySpark notebook?
[英]How can I save files to ADLS from Azure Databricks python notebook?
有誰知道如何將數據塊筆記本中的屏幕截圖直接保存到 ADLS。 我已經建立了連接,但由於某種原因我不能直接這樣做所以我保存到 DBFS 然后將文件移動到 ADLS 目前這有效:
driver.save_screenshot('/dbfs/test.png')
dbutils.fs.mv('dbfs:/', 'abfss://<container>@<storage-account>.dfs.core.windows.net/', recurse=True)
理想情況下,我想一步完成,而不是保存在根存儲中,而不是像這樣移動:
driver.save_screenshot('abfss://<container>@<storage-account>.dfs.core.windows.net/test.png')
or
driver.save_screenshot('/abfss/<storage-account>/<container>/test.png')
最后,設置 Unity Catalog 和相應的 Metastore 是否有助於將 DBFS 根存儲位置更改為 ADLS,以便我可以直接使用容器而無需每次都指定鏈接? 在這種情況下,最佳做法是什么?
非常感謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.