01-11-2024 09:14 AM
I recently had an Azure Databricks setup done behind a VPN. I'm trying to connect to my Azure Storage Account Gen 2 Using the following code I haven't been able to connect and keep getting stuck on reading the file. What should I be checking?
#initialize the source path and create the bronze df
SourceFilePath = f"abfss://" + PersistedContainer + "@" + AzureBlobStorageAccountName + ".dfs.core.windows.net/" + PersistedDirectory + "/" + PersistedFilename
print(SourceFilePath)
#Path prints out as expected
spark.conf.set(f"fs.azure.account.key." + AzureBlobStorageAccountName + ".dfs.core.windows.net","Key removed")
dfBronze = spark.read.load(SourceFilePath,format='csv',header = True).cache()
%sh nslookup AzureBlobStorageAccountName.dfs.core.windows.net
01-18-2024 11:45 AM
I ended up opening a ticket with Microsoft support about this issue and they walked us through the debugging on the issue. In the end the route table was not attached to the subnet. Once attached everything worked.
01-12-2024 07:57 AM
Hi, Could you please tell us what is the error code you are receiving?
01-12-2024 08:12 AM
Would love to, but no matter how long I keep the notebook running it hangs on the spark.read.load line with "Running Command..." No error message ever comes up.
01-18-2024 11:09 AM
Hi,
It keeps on running, does it happen with other notebooks? What about the cluster? Does it show any error in the driver logs? Can you try with other DBR versions or node types?
01-18-2024 11:44 AM
I was unable to find any error message in the driver logs. Not sure what you meant by the DBR versions or node types?
01-18-2024 11:42 AM
None of them answered my question
01-18-2024 11:45 AM
I ended up opening a ticket with Microsoft support about this issue and they walked us through the debugging on the issue. In the end the route table was not attached to the subnet. Once attached everything worked.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group