title: “GDPR in Ozone” date: “2019-September-17” weight: 5 summary: GDPR in Ozone icon: user

Enabling GDPR compliance in Ozone is very straight forward. During bucket creation, you can specify --enforcegdpr=true or -g=true and this will ensure the bucket is GDPR compliant. Thus, any key created under this bucket will automatically be GDPR compliant.

GDPR can only be enabled on a new bucket. For existing buckets, you would have to create a new GDPR compliant bucket and copy data from old bucket into new bucket to take advantage of GDPR.

Example to create a GDPR compliant bucket:

ozone sh bucket create --enforcegdpr=true /hive/jan

ozone sh bucket create -g=true /hive/jan

If you want to create an ordinary bucket then you can skip --enforcegdpr and -g flags.