dlm dp policy validate
This command validates the policy creation flow.
Usage
dp dlm policy validate
[command options] [arguments…]
Options
Name | Description |
---|---|
--config FILE, -c FILE |
Specifies policy definition in the configuration JSON file. |
Parent command
dp dlm policy validate
Example
dp dlm policy validate -c replpol.json
Scheduling policy on default$cluster2
Validated replication policy with name 'dlm-hive-db4' with source dataset 'db4', target dataset 'db4'.
An example of a typical JSON file:
{
"name": "HDFSNEWPol",
"type": "HIVE",
"source": {
"cluster": {
"name": "mycluster0",
"dcName": "default"
},
"dataset": [
"nondefault"
]
},
"target": {
"cluster": {
"name": "mycluster1",
"dcName": "default"
},
"dataset": [ "nondefault_rename"
],
"hiveExternalTableBasePath": "/tmp/"
},
"schedule": {
"frequency": 120
},
"advancedOptions": {
"queue": "default",
"disableAtlasReplication": true,
"maxMaps": 10,
"mapBandwidth": 10
}
}