cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting an Azure Databricks to Azure Gen 2 storage stuck on "Running Command..."

jborn
New Contributor III

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()

 

 

When I get to the spark.read.load line I get stuck on "Running Command..." 
Any commands I can use to get debug information on what is happening?
Using the shell command below resolves to the correct IP.

 

%sh nslookup AzureBlobStorageAccountName.dfs.core.windows.net​

 

1 ACCEPTED SOLUTION

Accepted Solutions

jborn
New Contributor III

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.

View solution in original post

7 REPLIES 7

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, Could you please tell us what is the error code you are receiving? 

jborn
New Contributor III

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.

Debayan
Esteemed Contributor III
Esteemed Contributor III

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? 

jborn
New Contributor III

I was unable to find any error message in the driver logs.  Not sure what you meant by the DBR versions or node types?

Kaniz_Fatma
Community Manager
Community Manager

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 
 

jborn
New Contributor III

None of them answered my question

jborn
New Contributor III

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 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!