Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
Creating a database in Azure Synapse Spark can fail due to various issues, such as workspace configuration problems or metastore access errors. If you encounter this error, consider checking your workspace settings, ensuring you have the necessary permissions, or trying to create a new workspace if the issue persists.
Here are a few common causes and troubleshooting steps:
Check Workspace Configuration - Ensure that your Azure Synapse workspace is properly set up. Verify that all necessary services are enabled and that it is linked to the correct Azure Data Lake Storage.
Verify Permissions - Make sure you have the appropriate permissions to create databases. You may need roles such as Synapse Administrator or Blob Storage Contributor. You can check your permissions in the Azure portal under the IAM settings.
Inspect Metastore Access - The error might be related to accessing the metastore. Ensure that it is correctly configured and that the storage account used for the metastore is accessible.
Network Configuration - If your workspace is set up with a private network, check that all required endpoints are configured correctly. Missing private endpoints can lead to access issues.
Check for Case Sensitivity - Be cautious about case sensitivity in paths. If there are directories with similar names, it could cause confusion.
For additional information, please refer: How-to: Create an empty lake database
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.