hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Vulikh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-14379) WebHdfsFileSystem.toUrl double encodes characters
Date Sat, 23 Mar 2019 12:14:00 GMT

     [ 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


Mime
View raw message