Hi Till, Actually I do send to request to the application master: "http://storage4.test.lan:8089/proxy/application_1532081306755_0124/jobs/269608367e0f548f30d98aa4efa2211e/savepoints <http://storage4.test.lan:8089/proxy/application_1532081306755_0124/jobs/269608367e0f548f30d98aa4efa2211e/savepoints>” with post body { "target-directory" : "hdfs://flinkDsl/xxx", "cancel-job" : "true” } If I use the following GET url, everything is OK "http://storage4.test.lan:8089/proxy/application_1532081306755_0124/jobs/269608367e0f548f30d98aa4efa2211e/checkpoints <http://storage4.test.lan:8089/proxy/application_1532081306755_0124/jobs/269608367e0f548f30d98aa4efa2211e/checkpoints>"
Best Henry > 在 2018年9月26日,上午5:32,Till Rohrmann <trohrm...@apache.org> 写道: > > Hi Henry, > > I think when running Flink on Yarn, then you must not go through the Yarn > proxy. Instead you should directly send the post request to the node on which > the application master runs. When starting a Flink Yarn session via > yarn-session.sh, then the web interface URL is printed to stdout, for example. > > Cheers, > Till > > On Tue, Sep 25, 2018 at 9:43 AM 徐涛 <happydexu...@gmail.com > <mailto:happydexu...@gmail.com>> wrote: > Hi All, > I am trying to POST a RESTful url and want to generate a savepoint, the > Flink version is 1.6.0. > When I executed the POST in local, everything is OK, but when I POST > the url on a Flink on YARN application. The following error is returned: > “405 HTTP method POST is not supported by this URL”, I guess it is > caused by YARN limitation. > (http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/REST-API-quot-broken-quot-on-YARN-because-POST-is-not-allowed-via-YARN-proxy-td19329.html > > <http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/REST-API-quot-broken-quot-on-YARN-because-POST-is-not-allowed-via-YARN-proxy-td19329.html>) > But does it have a workaround now? > > Best > Henry