Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-05-30 Thread Juho Autio
Thanks, Till! On Wed, May 30, 2018 at 10:39 AM, Till Rohrmann wrote: > Hi Juho, > > I created a JIRA issue for the problem [1]. Yes, the solution would be to > use only GET requests. Either we wrap our requests in a GET request or we > change our handlers to accept GET requests only. One thing w

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-05-30 Thread Till Rohrmann
Hi Juho, I created a JIRA issue for the problem [1]. Yes, the solution would be to use only GET requests. Either we wrap our requests in a GET request or we change our handlers to accept GET requests only. One thing which we have to fix first is that also the jar file upload goes through REST. [1

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-05-30 Thread Juho Autio
Hi, I tried to search Flink Jira for this but couldn't find a ticket to match. If there's no ticket yet, did I understand correctly though, that you would be open to support GET as an alternative method for all of Flink's REST operations? Now that 1.5 was released, it's a pity that this problem ki

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-04-05 Thread Till Rohrmann
This improvement is unfortunately out of scope for the 1.5 release since the feature freeze is already quite some time ago. But I hope that this improvement will make it into the 1.6 release. Cheers, Till On Thu, Apr 5, 2018 at 4:45 PM, Juho Autio wrote: > Thanks for the answer. Wrapping with G

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-04-05 Thread Juho Autio
Thanks for the answer. Wrapping with GET sounds good to me. You said next version; do you mean that Flink 1.5 would already include this improvement when it's released? On Thu, Apr 5, 2018 at 2:40 PM, Till Rohrmann wrote: > Hi Juho, > > you are right that due to a limitation in the Yarn proxy [1

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-04-05 Thread Till Rohrmann
Hi Juho, you are right that due to a limitation in the Yarn proxy [1] we cannot directly contact the cluster through the Yarn proxy. The way it works at the moment is that the Flink client retrieves the AM's hostname through the ApplicationReport and then directly talks to the AM. This of course

Re: REST API "broken" on YARN because POST is not allowed via YARN proxy

2018-04-04 Thread Fabian Hueske
Hi Juho, Thanks for raising this point! I'll add Chesnay and Till to the thread who contributed to the REST API. Best, Fabian 2018-04-04 15:02 GMT+02:00 Juho Autio : > I just learned that Flink savepoints API was refactored to require using > HTTP POST. > > That's fine otherwise, but makes lif