Replication service will replicate data related to backend storage service. Currently Hippo supports 33 / HDFS / Local (replicate data to on-premise side, only available for Local mode) modes.
curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_backup/create_service?pretty' -H 'Content-Type: application/json' -d'{
"type" : "local",
"name" : "test_local_service",
"params" : {
"end_point" : "/nn1", // required for s3 and hdfs
"username" : "melon", // required for s3 and hdfs
"password" : "warp", // required for s3 and hdfs
"local_path" : "/tmp/test_backup"
}
}';
Parameter description:
Parameters | Description | Required |
---|---|---|
type | Replication service type | Yes, S3 / HDFS / Local |
name | Replication service name | Yes, unique name for cluster |
end_point (params) | Replication service connection string | Required for S3 and HDFS |
username (params) | Username used to connect to replication service | Required for S3 and HDFS |
password (params) | Password used to connect to replication service | Required for S3 and HDFS |
local_path | Local path | Required for Local mode |
Table 70 Create Replication Service (Restful API)