[英]IllegalArgumentException: File must be dbfs or s3n: /
dbutils.fs.mount(
source = f"wasbs://{blob.storage_account_container}@{blob.storage_account_name}.blob.core.windows.net/",
mount_point = "/mnt/MLRExtract/",
extra_configs = {f"fs.azure.account.key.{blob.storage_account_name}.blob.core.windows.net":blob.storage_account_access_key})
在創建掛載點時,我遇到了以下錯誤-
IllegalArgumentException:文件必須是 dbfs 或 s3n:/
這個錯誤IllegalArgumentException
主要是語法有問題。 您可以遵循以下語法,我在我的環境中重現了相同的內容,並且工作正常。
句法:
spark.conf.set("fs.azure.account.key.<storage-account-name>.dfs.core.windows.net", dbutils.secrets.get(scope="<Scope-Name>",key="Key_Value"))
dbutils.fs.mount(
source = "wasbs://<container-name>@<storage-account-name>.blob.core.windows.net/",
mount_point = "/mnt/io24",
extra_configs = {"fs.azure.account.key.<storage-account-name>.blob.core.windows.net":"<storage-account-Access key>"}).
參考:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.