Connecting to a Yandex Object Storage bucket with a bucket policy
Written by
Updated at October 15, 2025
In Apache Hive™ Metastore, you can work with a Yandex Object Storage bucket with bucket policies configured. You access the bucket from a separate DNS zone through an internal load balancer that distributes traffic across NAT instances. This connection is outlined below. A Apache Hive™ Metastore cluster will be used in place of the test-s3-vm VM.
Getting started
- Create a network infrastructure to access the Object Storage bucket as shown in the picture above. Learn how to create such an infrastructure in this tutorial.
- Test the new infrastructure.
Prepare the Apache Hive™ Metastore cluster
- Create a service account named
my-accountwith thestorage.uploaderandmanaged-metastore.integrationProviderroles. - Grant the
READ and WRITEpermission to themy-accountservice account for the bucket you created earlier. - Configure the network and create a Apache Hive™ Metastore cluster. When creating it, specify the
my-accountservice account.
Test the connection
To test the Object Storage bucket connection, export the Apache Hive™ Metastore cluster data to that bucket.
Apache® and Apache Hive™