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:ย 

Databricks job fails while creating table.

RajeshRK
Contributor

Hi Team,

The Databricks job fails with the below error while creating EXTERNAL table.

com.simba.spark.jdbc41.internal.apache.http.wire - Error running query: MetaException(message:Got exception: org.apache.hadoop.fs.azure.AzureException com.microsoft.azure.storage.StorageException: Public access is not permitted on this storage account.)

MetaException(message:Got exception: org.apache.hadoop.fs.azure.AzureException com.microsoft.azure.storage.StorageException: Public access is not permitted on this storage account.), Query: CREATE EXTERNAL TABLE 

Can you please suggest if there is any permission missing in WASB storage?

Regards,

Rajesh.

10 REPLIES 10

Vivian_Wilfred
Databricks Employee
Databricks Employee

Hi @Rajesh Kannan Rโ€‹ , Can you verify the networking configuration on your storage account? Check the Firewall rule to see if public access is enabled for all networks. Enable all network and see if it resolves your issue.

imageIf you have restricted public access then the workspace has to be NPIP and you must have all the required workspace traffic to be whitelisted.

https://docs.microsoft.com/en-us/azure/databricks/security/secure-cluster-connectivity

@Vivian Wilfred

Hi Vivian,

Thank you for your quick update. Let me check the settings and update you.

@Vivian Wilfredโ€‹ 

Hi Vivian,

As I checked the network settings for the storage account and it is set to "Enabled from all networks".

Regards,

Rajesh.

@Rajesh Kannan Rโ€‹ , try enabling the Blob public access to see if it resolves the issue. Look for this setting in Overview > Properties > Data lake Storage >

image.png

@Vivian Wilfredโ€‹ 

Hi Vivian,

It is working when Blob public access is enabled, but as security concerns, our customers don't want to enable Blob public access. Is there any other way we can publish to databricks table without enabling blob public access?

@Vivian Wilfredโ€‹ 

Hi Vivian,

Can you please let me know is there any other way to create a table without enabling blob public access?

Regards,

Rajesh.

Hi @Rajesh Kannan Rโ€‹ , Allow Blob Public Access means that a storage account allows public blob/container access levels on the containers. If this is disabled then it means all containers must be private. When containers are private then you must authenticate with key, sp, etc. Please validate the authentication for these containers.

https://azure.microsoft.com/en-in/updates/choose-to-allow-or-disallow-blob-public-access-on-azure-st...

@Vivian Wilfredโ€‹ 

Hi Vivian,

Thank you for the update. I will check and get back to you.

Regards,

Rajesh.

@Arjun Kaimaparambil Rajanโ€‹ 

Hi Arjun,

We use sasToken to authenticate blob storage.

Regards

Rajesh.

Vartika
Databricks Employee
Databricks Employee

Hey there @Rajesh Kannan Rโ€‹ 

Hope all is well!

Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Connect with Databricks Users in Your Area

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