Parameters in Hive replication policy definition JSON file
The Hive replication policy definition JSON file contains all the parameters required to create an Hive replication policy.
The following table lists the parameters in the policy definition JSON file that are required for an Hive replication policy:
|clusterCrn||Enter the destination cluster CRN for Hive replication policy.|
|policyName||Enter a unique name for the replication policy.|
|name||Enter the unique name for the policy.|
|type||Enter HIVE to create a Hive replication policy.|
|replicationStrategy||Enter STATIC or DYNAMIC
to determine whether the file replication tasks should be distributed
among the mappers statically or dynamically. The default is
Static replication distributes file replication tasks among the mappers up front to achieve an uniform distribution based on the file sizes.
Dynamic replication distributes the file replication tasks in small sets to the mappers, and as each mapper completes its tasks, it dynamically acquires and processes the next unallocated set of tasks.
|skipChecksumChecks||Enter true to perform checksum checks. The
default is true.
Checksums are used to perform the following tasks:
|skipListingChecksumChecks||Enter true to skip checksum check while comparing two files to determine whether they are the same or not. Otherwise, the file size and last modified time are used to determine if files are the same or not. Skipping the check improves performance during the mapper phase.|
|abortOnError||Enter true to stop the policy job when an error occurs. This ensures that the files copied up to that point remain on the destination, but no additional files are copied. The default is false.|
|abortOnSnapshtDiffFailures||Enter true to stop the replication job if a snapshot diff fails during replication.|
|preserve||Enter true to preserve the block size,
replication count, permissions (including ACLs), and extended attributes
(XAttrs) as they exist on the source file system.
Enter false to use the settings as configured on the destination file system. By default, the source system settings are preserved.
|deletePolicy||Enter one of the following options:
|alert||Configure the following parameters as required:
|sentryPermissions||Enter INCLUDE to import both Hive object and URL permissions.|
|skipUrlPermissions||Enter true to import only the Hive object permissions.|
|numThreads||Enter the number of threads to use during replication.|
|frequencyInSec||Auto-populated after the policy runs successfully. Shows the time taken in seconds to complete the replication job.|
|targetDataset||Auto-populated after the policy runs successfully. Shows the target location where the replicated files are available on the target cluster.|
|cloudCredentials||Enter the cloud credentials.|
|sourceCluster||Shows the source cluster name.|
|targetCluster||Shows the target cluster name in the dataCenterName$cluster name format. For example, "DC-US$My Destination 17".|
|startTime||Shows the start time of the replication job.|
|endTime||Shows the end time of the replication job.|
|distcpMaxMaps||Enter the maximum map slots to limit the number of map slots per mapper. The default value is 20.|
|distcpMapBandwidth||Enter the maximum bandwidth to limit the bandwidth per mapper. The default is 100 MB.|
|queueName||Enter the YARN queue name if not set to Default queue name. By default, the Default queue name is used.|
|tdeSameKey||Enter true if the source and destination are encrypted with the same TDE key.|
|description||Enter a description for the policy.|
|enableSnapshotBasedReplication||Enter true to enable snapshot-based replication.|
|cloudEncryptionAlgorithm||Enter the cloud encryption algorithm.|
|cloudEncryptionKey||Enter the cloud encryption key.|
|plugins||Enter the plugins to deploy on all the nodes in the cluster if you have multiple repositories configured in your environment.|
|hiveExternalTableBaseDirectory||Enter the Hive external table base directory path.|
|cmPolicySubmitUser||Enter the following options: