在使用python的databricks中,dbutils.fs.mount给出java.lang.NullPointerException:authEndpoint尝试使用abfss装载。黄蜂很好用

在使用python的databricks中,dbutils.fs.mount给出java.lang.NullPointerException:authEndpoint尝试使用abfss装载。黄蜂很好用,python,databricks,azure-databricks,azure-data-lake-gen2,Python,Databricks,Azure Databricks,Azure Data Lake Gen2,在DataRicks中使用db.fs.mount连接到azure gen2 data lake时,在尝试连接到“”时收到authEndpoint错误abfss://theDir@Atalake.blob.core.windows.net/“但是,正在连接到”wasbs://theDir@Atalake.blob.core.windows.net/“运行良好。我试图理解为什么abfss会导致authEndpoint错误,而wasbs不会 enter code here #fails endpoin

在DataRicks中使用db.fs.mount连接到azure gen2 data lake时,在尝试连接到“”时收到authEndpoint错误abfss://theDir@Atalake.blob.core.windows.net/“但是,正在连接到”wasbs://theDir@Atalake.blob.core.windows.net/“运行良好。我试图理解为什么abfss会导致authEndpoint错误,而wasbs不会

enter code here
#fails
endpoint = "abfss://theDir@theDataLake.blob.core.windows.net/";
dbutils.fs.mount(
   source = endpoint,
   mount_point = "/mnt/test",
   extra_configs = {"fs.azure.account.key.theDataLake.blob.core.windows.net" : "xxxxxx"})

#works
endpoint = "wasbs://theDir@theDataLake.blob.core.windows.net/";
dbutils.fs.mount(
   source = endpoint,
   mount_point = "/mnt/test",
   extra_configs = {"fs.azure.account.key.theDataLake.blob.core.windows.net" : "xxxxxx"})

无法使用存储密钥装载ABFSS协议。只有在使用服务主体()时,才能使用ABFSS装载,并且它需要另一组参数用于
extra\u configs

{"fs.azure.account.auth.type": "OAuth",
"fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
"fs.azure.account.oauth2.client.id": "<application-id>",
"fs.azure.account.oauth2.client.secret": dbutils.secrets.get(scope="<scope-name>",key="<service-credential-key-name>"),
"fs.azure.account.oauth2.client.endpoint": "https://login.microsoftonline.com/<directory-id>/oauth2/token"}
{“fs.azure.account.auth.type”:“OAuth”,
“fs.azure.account.oauth.provider.type”:“org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider”,
“fs.azure.account.oauth2.client.id”:”,
“fs.azure.account.oauth2.client.secret”:dbutils.secrets.get(scope=“”,key=“”),
“fs.azure.account.oauth2.client.endpoint”:”https://login.microsoftonline.com//oauth2/token"}