cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to connect with Azure Storage with Scala

bchaubey
Contributor II

Hi Team, I am unable to connect Storage account with scala in Databricks, getting bellow error.

AbfsRestOperationException: Status code: -1 error code: null error message: Cannot resolve hostname: ptazsg5gfcivcrstrlrs.dfs.core.windows.net

Caused by: UnknownHostException: ptazsg5gfcivcrstrlrs.dfs.core.windows.net

at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.executeHttpOperation(AbfsRestOperation.java:315)

at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.execute(AbfsRestOperation.java:234)

1 REPLY 1

Anonymous
Not applicable

@Bhagwan Chaubey​ :

The error message suggests that the hostname for your Azure Storage account could not be resolved. This could happen if there is a network issue, or if the hostname is incorrect.

Here are some steps you can try to resolve the issue:

  1. Verify that the hostname is correct: Double-check that you have entered the correct hostname for your Azure Storage account. The hostname should be in the format accountname.dfs.core.windows.net. You can find the correct hostname in the Azure portal under your Storage account settings.
  2. Check your network connectivity: Make sure that you are connected to the internet and that your network connection is stable. You can try pinging the hostname to verify that you can reach it. If you are unable to reach the hostname, there may be a firewall or other network configuration issue that is preventing the connection.
  3. Check your authentication: Ensure that you have provided the correct credentials for accessing your Azure Storage account. If you are using a service principal, make sure that the principal has the appropriate permissions to access the account.
  4. Check your firewall settings: If you are using a firewall or network security group, make sure that it is configured to allow traffic to and from the Azure Storage account.

If none of these steps resolve the issue, you may need to contact your Azure administrator or support team for further assistance.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.