Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3681C1738D for ; Thu, 5 Feb 2015 16:09:36 +0000 (UTC) Received: (qmail 89456 invoked by uid 500); 5 Feb 2015 16:09:35 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 89412 invoked by uid 500); 5 Feb 2015 16:09:35 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 89401 invoked by uid 99); 5 Feb 2015 16:09:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2015 16:09:35 +0000 Date: Thu, 5 Feb 2015 16:09:35 +0000 (UTC) From: "Jonathan Maron (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2031) YARN Proxy model doesn't support REST APIs in AMs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307473#comment-14307473 ] Jonathan Maron commented on YARN-2031: -------------------------------------- I believe most, if not all, HTTP 1.1 client's will handle both 302 and 307. But assuming an HTTP 1.0 client will even work, or an HTTP 1.1 client exists that doesn't handle 307, we could implement that sort of logic. So, to be clear, the plan is: 1) Wait for this patch to get merged 2) Subsequently add logic that returns 302 for GET/HEAD requests, 307 otherwise? > 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 (v6.3.4#6332)