Showing results for 
Search instead for 
Did you mean: 

Deleted the s3 bucket assocated with metastore

New Contributor

I deleted the aws s3 bucket for the databricks metastore by mistake.

How to fix this? can I re-create the s3 bucket? Or can I delete the metastore (I don't have much data in it), and re-generate one? 

Thank you!


Community Manager
Community Manager

Hi @Jun_NN , I understand that you accidentally deleted the AWS S3 bucket associated with your Databricks metastore. 


Let’s explore the steps to resolve this situation:


Recreating the S3 Bucket:

  • You can indeed re-create the S3 bucket. Follow these steps:
    1. Create a new S3 bucket in your AWS account with the same name or a similar name as the original bucket.
    2. Ensure that the bucket configuration (such as region, permissions, and IAM roles) matches the original one.
    3. Once the bucket is created, you can proceed to re-create the Databricks metastore and link it to this new bucket.

Re-generating the Metastore:

  • If you don’t have much data in the metastore, you can consider deleting the existing metastore and creating a fresh one:
    1. Delete the existing metastore from the Databricks console.
    2. Create a new S3 bucket (as mentioned in the first option) or use an existing one.
    3. Create a new Databricks metastore, ensuring that it is assigned to your workspace.
    4. Update any relevant configurations in your workspace to point to the new metastore.

Workspace Restart:

Remember to back up any critical data before making changes. If you encounter any further issues, feel free to ask for additional assistance! 😊

Community Manager
Community Manager

Hi @Jun_NN ,

Indeed, deleting the AWS S3 bucket for the Databricks metastore can be a nerve-wracking task. However, there are strategies to recover from such situations.

Let’s explore some options:

  1. Regenerate Metastore:

    • If your metastore doesn’t contain critical data, consider deleting it and allowing Databricks to regenerate it. Here’s how:
      • Navigate to your Databricks workspace.
      • Access the cluster associated with the metastore.
      • Choose “Edit” to recreate the metastore.
  2. Recreate S3 Bucket:

    • If you’re comfortable, recreate the S3 bucket with the same name. Ensure that all configurations align correctly.

Remember to proceed with caution and assess the impact on your data and workflows. 🛠🔍

For more comprehensive disaster recovery strategies in Azure Databricks, including cross-regional so...official documentation.

It’s essential to have a robust plan in place, especially for cloud-native data analytics platforms like Azure Databricks. 🌐🔒

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.