From hdfs-issues-return-257685-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Sat Mar 23 12:14:03 2019 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 9044A18078F for ; Sat, 23 Mar 2019 13:14:02 +0100 (CET) Received: (qmail 75803 invoked by uid 500); 23 Mar 2019 12:14:01 -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 75560 invoked by uid 99); 23 Mar 2019 12:14:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Mar 2019 12:14:01 +0000 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 B8D7BE18A8 for ; Sat, 23 Mar 2019 12:14:00 +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 4D7842459B for ; Sat, 23 Mar 2019 12:14:00 +0000 (UTC) Date: Sat, 23 Mar 2019 12:14:00 +0000 (UTC) From: "Boris Vulikh (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-14379) WebHdfsFileSystem.toUrl double encodes characters 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/HDFS-14379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Boris Vulikh updated HDFS-14379: -------------------------------- Attachment: HDFS-14379-patch3.patch > WebHdfsFileSystem.toUrl double encodes characters > ------------------------------------------------- > > Key: HDFS-14379 > URL: https://issues.apache.org/jira/browse/HDFS-14379 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs, hdfs-client > Affects Versions: 3.2.0 > Reporter: Boris Vulikh > Assignee: Boris Vulikh > Priority: Major > Attachments: HDFS-14379-patch1.patch, HDFS-14379-patch3.patch > > > When using DistCP over HTTPFS with data that contains Spark partitions, DistCP fails to access the partitioned parquet files since the "=" characters in file path gets double encoded: > {{"/test/spark/partition/year=2019/month=1/day=1"}} > to > {{"/test/spark/partition/year%253D2019/month%253D1/day%253D1"}} > This happens since {{fsPathItem}} containing the character {color:#d04437}'='{color} is encoded by {{URLEncoder._encode_(fsPathItem, "UTF-8")}} to {color:#d04437}'%3D'{color} and then encoded again by {{new Path(....)}} to {color:#d04437}'%253D'{color}. -- 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