Create a metadata migration
Migrations will transfer existing metadata, as well as any subsequent changes made to the source metadata (in its scope), while Hive Migrator keeps working.
caution
If using MariaDB or MSSQL, the JDBC driver must be manually added to the classpath.
#
Create a metadata migration with the UIimportant
Ensure that you have migrated the HCFS data for the databases and tables that you want to migrate.
Both HCFS data and associated metadata are needed before successful queries can be run on migrated databases.
On the dashboard, select to add a Hive migration.
Provide a name for this migration.
Create a database pattern and a table pattern based upon Hive DDL that will match the databases and tables you want to migrate.
For example, using
test*
for the database pattern will match any database with "test" at the beginning of its name, such astest01
,test02
,test03
.Click Create to start the metadata migration with the parameters provided.
#
Create a metadata migration with the CLIMigrate metadata from your source metastore to a target metastore using the hive migration
command.
Define the source and target using the hive agent names, and apply the hive rule names to the migration.
Follow the command links to learn how to set the parameters and see examples.
Create a new hive migration:
Apply the
--auto-start
parameter if you would like the migration to start right away.If you don't have auto-start enabled, manually start the migration: