跳到主要内容
版本: 1.1

Savepoint Trigger

URL: http://localhost:8888/openapi/savepoint

Origin Url: http://localhost:8888/openapi/savepoint

Type: POST

Request headers

Header NameHeader Value

Parameters

Path parameters
ParameterTypeValueDescription
URL parameters
RequiredParameterTypeValueDescription
Body parameters
JSON

JSON document

Form URL-Encoded
RequiredParameterTypeValueDescription
truetaskIdNumber1
truesavePointTypeStringsavePointType_28p0g
Multipart
RequiredParameterTypeValueDescription

Response

Response example

Response document
{
"msg":"Result Message",
"code":"Result Code",
"data":{
"exceptionMsg":"No comment,Type =String",
"appId":"Application ID",
"startTime":"No comment,Type =String",
"jobInfos":[
{
"jobId":"Job ID",
"savePoint":"Save Point",
"status":"Job Status"
}
],
"endTime":"No comment,Type =String",
"type":"No comment,Type =String",
"isSuccess":"No comment,Type =Boolean"
},
"success":"Result is Success",
"time":"Result Time"
}

Demo

 http://127.0.0.1:8888/openapi/savepoint
{
/* required-start */
"jobId": "195352b0a4518e16699983a13205f059",
"savePointType": "trigger", // trigger | stop | cancel
/* required-end */
/* custom-start */
"savePoint": "195352b0a4518e16699983a13205f059",
"address": "127.0.0.1:8081",
"gatewayConfig": {
"clusterConfig": {
"appId": "application_1637739262398_0032",
"flinkConfigPath": "/opt/src/flink-1.13.3_conf/conf",
"flinkLibPath": "hdfs:///flink13/lib/flinklib",
"yarnConfigPath": "/usr/local/hadoop/hadoop-2.7.7/etc/hadoop"
}
}
/* custom-start */
}