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: 

bucket ownership of s3 bucket in databricks

LidorAbo
New Contributor II

We had a databricks job that has strange behavior,

when we passing 'output_path' to function saveAsTextFile and not output_path variable the data saved to the following path:

 s3://dev-databricks-hy1-rootbucket/nvirginiaprod/3219117805926709/output_path

The problem is that the object ownership for each object that saved in above path is not belongs to us - aws-prod.

So the question why the object owner is aws-prod and not our prod aws account?

Thanks for help.

Attached the notebook of job and also screenshoot from s3 bucket.

s3

1 REPLY 1

User16752239289
Valued Contributor
Valued Contributor

I suspect you provided a dbfs path to save the data hence the data saved under your workspace root bucket.

For the workspace root bucket, databricks workspace will interact with databricks credential to make sure databricks has access to it and able to modify.

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!