[ https://issues.apache.org/jira/browse/FLINK-35039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842230#comment-17842230 ]
Yu Chen commented on FLINK-35039: --------------------------------- Hi [~wczhu] , sorry for the late response. It does surprise me that YARN doesn't support POST. But I have a confusing point: POST requests are already used in many places in the Flink interfaces, such as Stop-with-savepoint. Are these interfaces currently not accessible on YARN? Moreover, according to the principles of RESTful Interface [1], the biggest difference between POST and PUT is that PUT requests are idempotent, the same request is submitted N times and the result is still the same, but the Profiling interface should be a new request each time and the result will be added to the server. Therefore, POST may be more in line with the semantics of this interface. So I wonder if it is appropriate to do this compatibility in Flink. WDYT [~yunta] ? [1] https://restfulapi.net/rest-put-vs-post/ !image-2024-04-30-11-12-34-734.png|width=414,height=496! > Create Profiling JobManager/TaskManager Instance failed > ------------------------------------------------------- > > Key: FLINK-35039 > URL: https://issues.apache.org/jira/browse/FLINK-35039 > Project: Flink > Issue Type: Bug > Components: Runtime / Web Frontend > Affects Versions: 1.19.0 > Environment: Hadoop 3.2.2 > Flink 1.19 > Reporter: JJJJude > Assignee: JJJJude > Priority: Major > Labels: pull-request-available > Attachments: image-2024-04-08-10-21-31-066.png, > image-2024-04-08-10-21-48-417.png, image-2024-04-08-10-30-16-683.png, > image-2024-04-30-11-12-34-734.png, image-2024-04-30-11-14-44-335.png > > > I'm test the "async-profiler" feature in version 1.19, but when I submit a > task in yarn per-job mode, I get an error when I click Create Profiling > Instance on the flink Web UI page. > !image-2024-04-08-10-21-31-066.png! > !image-2024-04-08-10-21-48-417.png! > The error message obviously means that the yarn proxy server does not support > *POST* calls. I checked the code of _*WebAppProxyServlet.java*_ and found > that the *POST* method is indeed not supported, so I changed it to *PUT* > method and the call was successful. > !image-2024-04-08-10-30-16-683.png! > -- This message was sent by Atlassian Jira (v8.20.10#820010)