Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex MetaData Hub
    • All guides
      • Creating a Metastore cluster
      • Configuring security groups
      • Connecting Yandex Data Processing to Metastore
      • Exporting and importing a Metastore cluster
      • Connecting to a Yandex Object Storage bucket with a bucket policy
      • Transferring logs from Metastore to Cloud Logging
      • Deleting a Metastore cluster
  • Audit Trails events
  • Pricing policy
  • Troubleshooting
  • Public materials
  • Release notes

In this article:

  • Getting started
  • Export data
  • Import data
  1. Step-by-step guides
  2. Hive Metastore
  3. Exporting and importing a Metastore cluster

Exporting and importing Hive metadata in the Metastore cluster

Written by
Yandex Cloud
Updated at March 6, 2025
  • Getting started
  • Export data
  • Import data

Getting startedGetting started

  1. Create a service account named my-account with the storage.uploader and managed-metastore.integrationProvider roles.
  2. Configure the network and create a Metastore cluster. When creating it, specify the my-account service account.
  3. Create a bucket named my-bucket in Yandex Object Storage. It will store the metadata file for import and export.
  4. Grant a READ and WRITE permission to the my-account service account for the bucket named my-bucket.

For more information about connecting to the bucket with configured bucket policies, see this guide.

Export dataExport data

Management console
  1. Go to the folder page and select Yandex MetaData Hub.

  2. In the left-hand panel, select the Metastore page.

  3. Click for the cluster you need and select Export.

  4. In the window that opens, specify:

    • The bucket named my-bucket the cluster data will be exported to.
    • The .sql file the cluster data will be written to. If a file with that name already exists, it will be overwritten.
  5. Click Export.

Import dataImport data

Before importing, upload the .sql file with metadata into my-bucket. For information on how to prepare a file and how the import process works, see Transferring metadata between Yandex Data Processing clusters using Metastore.

To import data to a cluster:

Management console
  1. Go to the folder page and select Yandex MetaData Hub.
  2. In the left-hand panel, select the Metastore.
  3. Click for the cluster you need and select Import.
  4. In the window that opens, select the bucket named my-bucket and the file the cluster data will be imported from.
  5. Click Import.

Was the article helpful?

Previous
Connecting Yandex Data Processing to Metastore
Next
Connecting to a Yandex Object Storage bucket with a bucket policy
Yandex project
© 2025 Yandex.Cloud LLC