我有一個每 5 分鐘運行一次的資料塊筆記本,部分功能是連接到 Azure Data Lake Storage Gen2 (ADLS Gen2) 中的檔案。
我在代碼中收到以下錯誤,但它似乎“突然出現”,因為該程序以前運行良好。“file =”部分是我寫的,所有引數都符合預期并匹配正確的檔案名/容器,并且確實存在于資料湖中。
---> 92 file = DataLakeFileClient.from_connection_string("DefaultEndpointsProtocol=https;AccountName=" storage_account_name ";AccountKey=" storage_account_access_key,
93 file_system_name=azure_container, file_path=location_to_write)
94
/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_data_lake_file_client.py in from_connection_string(cls, conn_str, file_system_name, file_path, credential, **kwargs)
116 :rtype ~azure.storage.filedatalake.DataLakeFileClient
117 """
--> 118 account_url, _, credential = parse_connection_str(conn_str, credential, 'dfs')
119 return cls(
120 account_url, file_system_name=file_system_name, file_path=file_path,
/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/base_client.py in parse_connection_str(conn_str, credential, service)
402 if service == "dfs":
403 primary = primary.replace(".blob.", ".dfs.")
--> 404 secondary = secondary.replace(".blob.", ".dfs.")
405 return primary, secondary, credential
有什么想法/幫助嗎?實際錯誤在 base_client.py 代碼中,但我什至不知道“次要”應該是什么以及為什么會有錯誤。
uj5u.com熱心網友回復:
出于某種原因,重新啟動集群后,發生了一些變化,并且需要以下“端點后綴”才能繼續作業,找不到任何檔案說明為什么沒有它它會作業,但直到幾天前,它一直作業:
"DefaultEndpointsProtocol=https;AccountName=" storage_account_name ";AccountKey=" storage_account_access_key ";EndpointSuffix=core.windows.net"
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/475933.html
下一篇:X類不能轉換為布爾類(X位于加載程式“app”的未命名模塊中;布林值位于加載程式“bootstrap”的模塊java.base中
