From hdfs-issues-return-236147-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Oct 1 22:18:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 22DF8180677 for ; Mon, 1 Oct 2018 22:18:03 +0200 (CEST) Received: (qmail 49880 invoked by uid 500); 1 Oct 2018 20:18:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 49868 invoked by uid 99); 1 Oct 2018 20:18:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2018 20:18:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C4902C62DC for ; Mon, 1 Oct 2018 20:18:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2Y9XIJBeCUNf for ; Mon, 1 Oct 2018 20:18:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BC3C25F51F for ; Mon, 1 Oct 2018 20:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 41300E2613 for ; Mon, 1 Oct 2018 20:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8A3C227763 for ; Mon, 1 Oct 2018 20:18:00 +0000 (UTC) Date: Mon, 1 Oct 2018 20:18:00 +0000 (UTC) From: "Bharat Viswanadham (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDDS-525) Support virtual-hosted style URLs 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/HDDS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bharat Viswanadham updated HDDS-525: ------------------------------------ Fix Version/s: 0.2.2 > Support virtual-hosted style URLs > --------------------------------- > > Key: HDDS-525 > URL: https://issues.apache.org/jira/browse/HDDS-525 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Reporter: Elek, Marton > Assignee: Bharat Viswanadham > Priority: Major > Fix For: 0.2.2 > > Attachments: HDDS-525.00.patch, HDDS-525.02.patch, HDDS-525.03.patch, HDDS-525.04.patch, HDDS-525.05.patch, HDDS-525.06.patch, HDDS-525.07.patch, HDDS-525.08.patch > > > AWS supports to kind of pattern for the base url of the s3 rest api: virtual-hosted style and path-style. > Path style: http://s3.us-east-2.amazonaws.com/bucket > Virtual-hosted style: http://bucket.s3.us-east-2.amazonaws.com > By default we support the path style method with the volume name in the url: > http://s3.us-east-2.amazonaws.com/volume/bucket > Here the endpoint url is http://s3.us-east-2.amazonaws.com/volume/ and the bucket is appended. > Some of the 3rd party s3 tools (goofys is an example) Supports only the virtual style method. With goofys we can set a custom endpoint (http://localhost:9878) but all the other postfixes after the port are removed. > It can be solved with using virtual-style url which also could include the volume name: > http://bucket.volume..........com > The easiest way is to support both of them is implementing a ContainerRequestFilter which can parse the hostname (based on a configuration value) and extend the existing url with adding the missing volume/bucket part. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org