DLM Administration
Also available as:
PDF
loading table of contents...

dp dlm policy list

This command lists the existing replication policies in the Data Lifecycle Manager instance.

Usage

dp dlm policy list

Parent command

dp dlm policy

Example

dp dlm policy list
Policies 
[
 {
 "id": "/default/mycluster0/default/mycluster1/TestOnpremSnap_1557396802/0/1557331228979/000000011",
 "name": "TestOnpremSnap_1557396802",
 "type": "FS",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "/tmp/TestOnpremSnap_1557396802"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "/tmp/TestOnpremSnap_1557396802"
 ]
 },
 "schedule": {
 "startTime": "2019-05-09T10:17:24",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default",
 "useSnapshots": true
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/HdfsPolicyOne/0/1557331228979/000000010",
 "name": "HdfsPolicyOne",
 "description": "policyDescription",
 "type": "FS",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "/user/hrt_qa/policies/HDFSPoliciesTest/test_hdfsReplicationPolicy"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "/user/hrt_qa/policies/HDFSPoliciesTest/test_hdfsReplicationPolicy"
 ]
 },
 "schedule": {
 "startTime": "2019-05-09T09:51:50",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/hivePolicynegtest_ranger/0/1557331228979/000000009",
 "name": "hivePolicynegtest_ranger",
 "type": "HIVE",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "negtest_ranger"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "negtest_ranger"
 ],
 "hiveExternalTableBasePath": "/tmp/"
 },
 "schedule": {
 "startTime": "2019-05-08T21:25:00",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/hivePolicyranger_database/0/1557331228979/000000008",
 "name": "hivePolicyranger_database",
 "type": "HIVE",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "ranger_database"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "ranger_database"
 ],
 "hiveExternalTableBasePath": "/tmp/"
 },
 "schedule": {
 "startTime": "2019-05-08T20:52:25",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/hive_repl/0/1557331228979/000000007",
 "name": "hive_repl",
 "type": "HIVE",
 "status": "SUSPENDED",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "merge_data"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "merge_data_1"
 ],
 "hiveExternalTableBasePath": "/"
 },
 "schedule": {
 "startTime": "2019-05-08T20:36:14",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 120
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/hivePolicynondefault/0/1557331228979/000000004",
 "name": "hivePolicynondefault",
 "type": "HIVE",
 "status": "SUSPENDED",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "nondefault"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "nondefault"
 ],
 "hiveExternalTableBasePath": "/tmp/"
 },
 "schedule": {
 "startTime": "2019-05-08T16:18:36",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/hivePolicydefault/0/1557331228979/000000003",
 "name": "hivePolicydefault",
 "type": "HIVE",
 "status": "SUSPENDEDFORINTERVENTION",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "default"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "default"
 ],
 "hiveExternalTableBasePath": "/tmp/"
 },
 "schedule": {
 "startTime": "2019-05-08T16:10:55",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/TestOnpremSnap_1557331345/0/1557331228979/000000002",
 "name": "TestOnpremSnap_1557331345",
 "type": "FS",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "/tmp/TestOnpremSnap_1557331345"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "/tmp/TestOnpremSnap_1557331345"
 ]
 },
 "schedule": {
 "startTime": "2019-05-08T16:06:27",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default",
 "useSnapshots": true
 }
 },
 {
 "id": "/default/mycluster0/default/mycluster1/HdfsPolicyRename/0/1557331228979/000000001",
 "name": "HdfsPolicyRename",
 "description": "policyDescription",
 "type": "FS",
 "status": "RUNNING",
 "source": {
 "cluster": {
 "name": "mycluster0",
 "dcName": "default"
 },
 "dataset": [
 "/user/hrt_qa/policies/HDFSPoliciesTest/test_policyRename"
 ]
 },
 "target": {
 "cluster": {
 "name": "mycluster1",
 "dcName": "default"
 },
 "dataset": [
 "/user/hrt_qa/policies/HDFSPoliciesTest/test_policyRename_rename"
 ]
 },
 "schedule": {
 "startTime": "2019-05-08T16:00:28",
 "endTime": "9999-12-31T00:00:00",
 "frequency": 300
 },
 "advancedOptions": {
 "queue": "default"
 }
 }
]