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: 

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.

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!