Re: Rest API cancel-with-savepoint: 404s when passing path as target-directory
Posted by
Eron Wright on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Rest-API-cancel-with-savepoint-404s-when-passing-path-as-target-directory-tp15685p15722.html
Good news, it can be done if you carefully encode the target directory with percent-encoding, as per:
https://tools.ietf.org/html/rfc3986#section-2.1
For example, given the directory `s3:///savepoint-bucket/my-awesome-job`, which encodes to `s3%3A%2F%2F%2Fsavepoint-bucket%2Fmy-awesome-job`, I was able to submit the following URL:
And see the following in the log:
2017-09-19 14:27:45,939 INFO org.apache.flink.runtime.jobmanager.JobManager - Trying to cancel job 5c360ded6e4b7d8db103e71d68b7c83d with savepoint to s3:///savepoint-bucket/my-awesome-job
-Eron