Information about a replication command.
This object holds all the information a regular ApiCommand object provides, and adds specific information about the results of a replication command. Depending on the type of the service where the replication was run, a different result property will be populated.| name | data type | description |
|---|---|---|
| hdfsResult | ApiHdfsReplicationResult | Results for replication commands on HDFS services. |
| hiveResult | ApiHiveReplicationResult | Results for replication commands on Hive services. |
| hiveOnTezResult | ApiHiveOnTezReplicationResult | Results for replication commands on HiveOnTez services. |
Properties inherited from ApiCommand |
||
| id | number | The command ID. |
| name | string | The command name. |
| startTime | string | The start time. |
| endTime | string | The end time, if the command is finished. |
| active | boolean | Whether the command is currently active. |
| success | boolean | If the command is finished, whether it was successful. |
| resultMessage | string | If the command is finished, the result message. |
| resultDataUrl | string | URL to the command's downloadable result data, if any exists. |
| clusterRef | ApiClusterRef | Reference to the cluster (for cluster commands only). |
| serviceRef | ApiServiceRef | Reference to the service (for service commands only). |
| roleRef | ApiRoleRef | Reference to the role (for role commands only). |
| hostRef | ApiHostRef | Reference to the host (for host commands only). |
| parent | ApiCommand | Reference to the parent command, if any. |
| children | ApiCommandList | List of child commands. Only available in the full view.
The list contains only the summary view of the children. |
| canRetry | boolean | If the command can be retried. Available since V11 |
Example
{
"hdfsResult" : {
"progress" : 12345,
"throughput" : 12345.0,
"remainingTime" : 12345,
"estimatedCompletionTime" : "...",
"counters" : [ {
"group" : "...",
"name" : "...",
"value" : 12345
}, {
"group" : "...",
"name" : "...",
"value" : 12345
} ],
"numFilesDryRun" : 12345,
"numBytesDryRun" : 12345,
"numFilesExpected" : 12345,
"numBytesExpected" : 12345,
"numFilesCopied" : 12345,
"numBytesCopied" : 12345,
"numFilesSkipped" : 12345,
"numBytesSkipped" : 12345,
"numFilesDeleted" : 12345,
"numFilesCopyFailed" : 12345,
"numBytesCopyFailed" : 12345,
"setupError" : "...",
"jobId" : "...",
"jobDetailsUri" : "...",
"dryRun" : true,
"snapshottedDirs" : [ "...", "..." ],
"runAsUser" : "...",
"runOnSourceAsUser" : "...",
"logPath" : "...",
"failedFiles" : [ "...", "..." ]
},
"hiveResult" : {
"phase" : "...",
"tableCount" : 12345,
"tables" : [ {
"database" : "...",
"tableName" : "..."
}, {
"database" : "...",
"tableName" : "..."
} ],
"impalaUDFCount" : 12345,
"hiveUDFCount" : 12345,
"impalaUDFs" : [ {
"database" : "...",
"signature" : "..."
}, {
"database" : "...",
"signature" : "..."
} ],
"hiveUDFs" : [ {
"database" : "...",
"signature" : "..."
}, {
"database" : "...",
"signature" : "..."
} ],
"errorCount" : 12345,
"errors" : [ {
"database" : "...",
"tableName" : "...",
"impalaUDF" : "...",
"hiveUDF" : "...",
"error" : "..."
}, {
"database" : "...",
"tableName" : "...",
"impalaUDF" : "...",
"hiveUDF" : "...",
"error" : "..."
} ],
"dataReplicationResult" : {
"progress" : 12345,
"throughput" : 12345.0,
"remainingTime" : 12345,
"estimatedCompletionTime" : "...",
"counters" : [ { }, { } ],
"numFilesDryRun" : 12345,
"numBytesDryRun" : 12345,
"numFilesExpected" : 12345,
"numBytesExpected" : 12345,
"numFilesCopied" : 12345,
"numBytesCopied" : 12345,
"numFilesSkipped" : 12345,
"numBytesSkipped" : 12345,
"numFilesDeleted" : 12345,
"numFilesCopyFailed" : 12345,
"numBytesCopyFailed" : 12345,
"setupError" : "...",
"jobId" : "...",
"jobDetailsUri" : "...",
"dryRun" : true,
"snapshottedDirs" : [ "...", "..." ],
"runAsUser" : "...",
"runOnSourceAsUser" : "...",
"logPath" : "...",
"failedFiles" : [ "...", "..." ]
},
"dryRun" : true,
"runAsUser" : "...",
"runOnSourceAsUser" : "...",
"logPath" : "...",
"directoryForMetadata" : "...",
"statsAvailable" : true,
"dbProcessed" : 12345,
"tableProcessed" : 12345,
"partitionProcessed" : 12345,
"functionProcessed" : 12345,
"indexProcessed" : 12345,
"statsProcessed" : 12345,
"dbExpected" : 12345,
"tableExpected" : 12345,
"partitionExpected" : 12345,
"functionExpected" : 12345,
"indexExpected" : 12345,
"statsExpected" : 12345
},
"hiveOnTezResult" : {
"type" : "...",
"status" : "...",
"error" : "...",
"tablesCurrent" : 12345,
"tablesTotal" : 12345,
"functionsCurrent" : 12345,
"functionsTotal" : 12345,
"eventsCurrent" : 12345,
"eventsTotal" : 12345,
"policiesCurrent" : 12345,
"policiesTotal" : 12345,
"entitiesCurrent" : 12345,
"entitiesTotal" : 12345
},
"id" : 12345,
"name" : "...",
"startTime" : "...",
"endTime" : "...",
"active" : true,
"success" : true,
"resultMessage" : "...",
"resultDataUrl" : "...",
"clusterRef" : {
"clusterName" : "...",
"displayName" : "..."
},
"serviceRef" : {
"peerName" : "...",
"clusterName" : "...",
"serviceName" : "...",
"serviceDisplayName" : "...",
"serviceType" : "..."
},
"roleRef" : {
"clusterName" : "...",
"serviceName" : "...",
"roleName" : "..."
},
"hostRef" : {
"hostId" : "...",
"hostname" : "..."
},
"parent" : {
"id" : 12345,
"name" : "...",
"startTime" : "...",
"endTime" : "...",
"active" : true,
"success" : true,
"resultMessage" : "...",
"resultDataUrl" : "...",
"clusterRef" : {
"clusterName" : "...",
"displayName" : "..."
},
"serviceRef" : {
"peerName" : "...",
"clusterName" : "...",
"serviceName" : "...",
"serviceDisplayName" : "...",
"serviceType" : "..."
},
"roleRef" : {
"clusterName" : "...",
"serviceName" : "...",
"roleName" : "..."
},
"hostRef" : {
"hostId" : "...",
"hostname" : "..."
},
"parent" : { },
"children" : {
"items" : [ { }, { } ]
},
"canRetry" : true
},
"children" : {
"items" : [ {
"id" : 12345,
"name" : "...",
"startTime" : "...",
"endTime" : "...",
"active" : true,
"success" : true,
"resultMessage" : "...",
"resultDataUrl" : "...",
"clusterRef" : { },
"serviceRef" : { },
"roleRef" : { },
"hostRef" : { },
"parent" : { },
"children" : { },
"canRetry" : true
}, {
"id" : 12345,
"name" : "...",
"startTime" : "...",
"endTime" : "...",
"active" : true,
"success" : true,
"resultMessage" : "...",
"resultDataUrl" : "...",
"clusterRef" : { },
"serviceRef" : { },
"roleRef" : { },
"hostRef" : { },
"parent" : { },
"children" : { },
"canRetry" : true
} ]
},
"canRetry" : true
}