Steve Loughran commented on YARN-2031:

This was returning 307 everywhere; it should remain 302 on the GET/HEAD 
operations, in case clients are only handling that.

YARN-3147 cleans up the code prior to being HTTP-verb aware; the 
{{sendRedirect()}} method in this issue's -001 patch was used as the basis for 
the {{ProxyUtils}} version there —that one only sets 302, but adds generation 
of output text on all responses.

Once that's in the proxy and filter can start to handle complex verbs

> YARN Proxy model doesn't support REST APIs in AMs
> -------------------------------------------------
>                 Key: YARN-2031
>                 URL: https://issues.apache.org/jira/browse/YARN-2031
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.4.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>         Attachments: YARN-2031.patch.001
> AMs can't support REST APIs because
> # the AM filter redirects all requests to the proxy with a 302 response (not 
> 307)
> # the proxy doesn't forward PUT/POST/DELETE verbs
> Either the AM filter needs to return 307 and the proxy to forward the verbs, 
> or Am filter should not filter a REST bit of the web site

This message was sent by Atlassian JIRA

Reply via email to