Apache Flink - Error on creating savepoints using REST interface

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache Flink - Error on creating savepoints using REST interface

M Singh
Hi:

curl -v -H "Content-Type: application/json" -XPOST http://<jobnamager:port>/jobs/<jobId>/savepoints -d '{"target-directory":"s3://mys3bucket/savepointdirectory/testMay22-sp1/"}'
 

But I am getting the following error:

{"errors":["Request did not match expected format SavepointTriggerRequestBody."]}


Can you please let me know what I could be missing ?
Thanks





Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink - Error on creating savepoints using REST interface

Chesnay Schepler
You also have to set the boolean cancel-job parameter.

On 22/05/2020 22:47, M Singh wrote:
Hi:

curl -v -H "Content-Type: application/json" -XPOST http://<jobnamager:port>/jobs/<jobId>/savepoints -d '{"target-directory":"s3://mys3bucket/savepointdirectory/testMay22-sp1/"}'
 
But I am getting the following error:
{"errors":["Request did not match expected format SavepointTriggerRequestBody."]}
Can you please let me know what I could be missing ?
Thanks


Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink - Error on creating savepoints using REST interface

M Singh
Hi Chesney:

The SavepointTriggerRequestBody indicates defaultValue for cancel-job attribute, so is it not being honored ?


Thanks

On Saturday, May 23, 2020, 10:17:27 AM EDT, Chesnay Schepler <[hidden email]> wrote:


You also have to set the boolean cancel-job parameter.

On 22/05/2020 22:47, M Singh wrote:
Hi:

curl -v -H "Content-Type: application/json" -XPOST http://<jobnamager:port>/jobs/<jobId>/savepoints -d '{"target-directory":"s3://mys3bucket/savepointdirectory/testMay22-sp1/"}'
 
But I am getting the following error:
{"errors":["Request did not match expected format SavepointTriggerRequestBody."]}
Can you please let me know what I could be missing ?
Thanks