Replication arguments for Hive services.


property type description
sourceService sourceService (apiServiceRef) The service to replicate from.
tableFilters array of tableFilters/tableFilters (apiHiveTable) Filters for tables to include in the replication. Optional. If not provided, include all tables in all databases.
exportDir exportDir (string) Directory, in the HDFS service where the target Hive service's data is stored, where the export file will be saved. Optional. If not provided, Cloudera Manager will pick a directory for storing the data.
force force (boolean) Whether to force overwriting of mismatched tables.
replicateData replicateData (boolean) Whether to replicate table data stored in HDFS.

If set, the "hdfsArguments" property must be set to configure the HDFS replication job.

hdfsArguments hdfsArguments (apiHdfsReplicationArguments) Arguments for the HDFS replication job.

This must be provided when choosing to replicate table data stored in HDFS. The "sourceService", "sourcePath" and "dryRun" properties of the HDFS arguments are ignored; their values are derived from the Hive replication's information.

The "destinationPath" property is used slightly differently from the usual HDFS replication jobs. It is used to map the root path of the source service into the target service. It may be omitted, in which case the source and target paths will match.

Example: if the destination path is set to "/new_root", a "/foo/bar" path in the source will be stored in "/new_root/foo/bar" in the target.

replicateImpalaMetadata replicateImpalaMetadata (boolean) Whether to replicate the impala metadata. (i.e. the metadata for impala UDFs and their corresponding binaries in HDFS).
dryRun dryRun (boolean) Whether to perform a dry run. Defaults to false.