ApiHiveReplicationResult Data Model

Detailed information about a Hive replication job.

Properties
name data type description
phase string Phase the replication is in.

If the replication job is still active, this will contain a string describing the current phase. This will be one of: EXPORT, DATA or IMPORT, for, respectively, exporting the source metastore information, replicating table data (if configured), and importing metastore information in the target.

This value will not be present if the replication is not active.

Available since API v4.

tableCount number Number of tables that were successfully replicated. Available since API v4.
tables array of ApiHiveTable The list of tables successfully replicated.

Since API v4, this is only available in the full view.

impalaUDFCount number Number of impala UDFs that were successfully replicated. Available since API v6.
hiveUDFCount number Number of hive UDFs that were successfully replicated. Available since API v14.
impalaUDFs array of ApiImpalaUDF The list of Impala UDFs successfully replicated. Available since API v6 in the full view.
hiveUDFs array of ApiHiveUDF The list of Impala UDFs successfully replicated. Available since API v6 in the full view.
errorCount number Number of errors detected during replication job. Available since API v4.
errors array of ApiHiveReplicationError List of errors encountered during replication.

Since API v4, this is only available in the full view.

dataReplicationResult ApiHdfsReplicationResult Result of table data replication, if performed.
dryRun boolean Whether this was a dry run.
runAsUser string Name of the of proxy user, if any. Available since API v11.
runOnSourceAsUser string Name of the source proxy user, if any. Available since API v18.

Example

{
  "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" : [ {
      "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" : "...",
    "failedFiles" : [ "...", "..." ]
  },
  "dryRun" : true,
  "runAsUser" : "...",
  "runOnSourceAsUser" : "..."
}