Replication arguments for replicating services defined in Ranger. It works the following way:
name | data type | description |
---|---|---|
sourceRangerService | ApiServiceRef | The source service to replicate from. |
exportArgs | ApiRangerReplicationExportArgs | If provided then replicate services defined in Ranger from source to destination. If not provided then it will be skipped. Mandatory field is getRangerServiceNames. |
transformArgs | ApiRangerReplicationTransformArgs | Replication arguments for the TRANSFORM operation. Relevant only if getExportArgs was provided. |
importArgs | ApiRangerReplicationImportArgs | Replication arguments for the IMPORT operation. Relevant only if getExportArgs was provided. |
auditLogDistCpArgs | ApiHdfsReplicationArguments | If provided then the replication will distributed copy Ranger HDFS audit logs from source to destination HDFS. If not provided then it will be skipped. Mandatory fields are getUserName and getSourceUser. Any other ApiHdfsReplicationArguments fields could be provided, sourcePath and destinationPath will be set appropriately by CM, when not specified. |
Example
{ "sourceRangerService" : { "peerName" : "...", "clusterName" : "...", "serviceName" : "...", "serviceDisplayName" : "...", "serviceType" : "..." }, "exportArgs" : { "rangerServiceNames" : [ "...", "..." ] }, "transformArgs" : { "rangerServiceNamesMapping" : { "property1" : "...", "property2" : "..." }, "rangerUsersMapping" : { "property1" : "...", "property2" : "..." }, "rangerResourcesMapping" : { "property1" : "...", "property2" : "..." } }, "importArgs" : { "importStrategy" : "MERGE" }, "auditLogDistCpArgs" : { "sourceService" : { "peerName" : "...", "clusterName" : "...", "serviceName" : "...", "serviceDisplayName" : "...", "serviceType" : "..." }, "sourcePath" : "...", "destinationPath" : "...", "mapreduceServiceName" : "...", "schedulerPoolName" : "...", "userName" : "...", "sourceUser" : "...", "numMaps" : 12345, "dryRun" : true, "bandwidthPerMap" : 12345, "abortOnError" : true, "removeMissingFiles" : true, "preserveReplicationCount" : true, "preserveBlockSize" : true, "preservePermissions" : true, "logPath" : "...", "skipChecksumChecks" : true, "skipListingChecksumChecks" : true, "skipTrash" : true, "replicationStrategy" : "STATIC", "preserveXAttrs" : true, "exclusionFilters" : [ "...", "..." ], "raiseSnapshotDiffFailures" : true, "deleteLatestSourceSnapshotOnJobFailure" : true, "numFetchThreads" : 12345, "destinationCloudAccount" : "..." } }