Copy Table across Clusters

Hippo supports copying all data records of the table across clusters without performing data synchronization.

Copy Table

curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_ccr/copy_table?pretty' -H 'Content-Type: application/json' -d'{
  "task_name" : "copy_book",
  "remote_cluster_name" : "cluster1",
  "source_table" : {
    "database_name" : "default",
    "table_name" : "book"
  },
  "dest_table" : {
    "database_name" : "default",
    "table_name" : "book_backup"
  }
}';

Check Copy Job

curl -u shiva:shiva -XGET 'localhost:8902/hippo/v1/_ccr/get_copy_tables/{pattern}?pretty'

Parameter description:

ParametersDescriptionRequired
patternRelationship nameYes, supports using asterisk (*) wildcard character

Table 68 Check Copy Table (Restful API)

Delete Copy Job

curl -u shiva:shiva -XDELETE 'localhost:8902/hippo/v1/_ccr/delete_copy_table/{name}?pretty'

Parameter description:

ParametersDescriptionRequired
patternRelationship nameYes, supports using asterisk (*) wildcard character

Table 68 Delete Copy Table (Restful API)