Apache Kylin : Analytical Data Warehouse for Big Data

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OptionHas Parameter Description
-srcConfigtrue[Required] The KylinConfig of the source cluster with 3 kinds of format:
1. URI e.g. user:pwd@host:port.
2. Properties file e.g. /home/kylin/conf/kylin.properties
3. Local metadata dir e.g. /home/kylin/meta_backups/meta_2021_04_21_18_29_04
-dstConfigtrueRequired] The KylinConfig of the target cluster with 3 kinds of format:
1. uri e.g. user:pwd@host:port.
2. properties file e.g. /home/kylin/conf/kylin.properties
3. local metadata dir e.g. /home/kylin/meta_backups/meta_2021_04_21_18_29_04
-allCubesfalse[Optional] Migrate all cubes in source cluster.
-cubetrue[Optional] migrate single cube in source cluster, argument value is the cube name to migrate.
-srcProjecttrue[Optional] migrate all cubes under specific project in source cluster, argument value is the project name to migrate.
-dstProjecttrue

[Optional] cube's new project home(will be created if not exists). If not set, keep the same as cube's original project.

With this option, we can migrate a "single cube", "a project" or "all cubes" to target cluster.

-migrateSegmentfalse[Optional] migrate segment data
-overwriteIfExistsfalse[Optional] overwrite target cluster's metadata if exists
-purgeAndDisablefalse[Optional] purge source cluster data
-realMigratetrue

[Optional] execute migration, parameter value:

  1. true: execute migration
  2. false: not execute migration
-copyAclfalse [Optional] copy ACL

Please note:

  1. The URI format of KylinConfig is not backward compatible, for it fetches metadata storage information by http request, older version may not be supported.
  2. only one of "-cube", "-srcProject", "-allCubes" could only be present to specify metadata to migrate.
  3. CubeMigrationCli will reload target cluster's metadata, we don't have to restart target cluster.

...