无法将数据湖 gen1 挂载到数据块

时间:2021-07-20 10:21:07

标签: databricks azure-databricks

我正在将 Datalake Gen1 安装到 Databricks 以访问和处理文件,以下代码在过去 1 年中运行良好,突然间我收到错误

configs = {"df.adl.oauth2.access.token.provider.type": "ClientCredential",
           "df.adl.oauth2.client.id": dbutils.secrets.get(scope = "scope1", key = "scope1ID"),
           "df.adl.oauth2.credential": dbutils.secrets.get(scope = "scope1", key = "scope1Secret"),
           "df.adl.oauth2.refresh.url": "https://login.microsoftonline.com/####REPLACED FOR SECURITY###/oauth2/token"}

# Optionally, you can add <directory-name> to the source URI of your mount point.
dbutils.fs.mount(
  source = "adl://company.azuredatalakestore.net/sandbox/",
  mount_point = "/mnt/testFolder",
  extra_configs = configs)
Error :
ExecutionError: An error occurred while calling o334.mount.
: com.microsoft.azure.datalake.store.ADLException: Error creating directory /
Error fetching access token
Operation null failed with exception java.io.IOException : AADToken: HTTP connection failed for getting token from AzureAD due to timeout.  Client Request Id :##### MASKED FOR SECURITY## Latency(ns) : 73677066

该错误看起来像一些访问问题。请帮我解码错误以修复它。

0 个答案:

没有答案
相关问题