[ 
https://issues.apache.org/jira/browse/HDFS-14423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815832#comment-16815832
 ] 

Daryn Sharp commented on HDFS-14423:
------------------------------------

Those 2 referenced patches appear completely broken.  The DN is double decoding 
the path which is probably the issue.  That's worthy of revert but hopefully we 
won't wade through the debate of being compatible with the revert of an 
incompatible bug.  The client is also making a horribly inefficient attempt to 
double encode characters.

> Percent (%) characters no longer work in WebHDFS
> ------------------------------------------------
>
>                 Key: HDFS-14423
>                 URL: https://issues.apache.org/jira/browse/HDFS-14423
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 3.2.0, 3.1.2
>         Environment: Ubuntu 16.04, but I believe this is irrelevant.
>            Reporter: Jing Wang
>            Priority: Major
>
> The following commands no longer work starting with version 3.1:
> {code}
> $ hadoop/bin/hdfs dfs -touchz webhdfs://localhost/%
> $ hadoop/bin/hdfs dfs -cat webhdfs://localhost/%
> cat: URLDecoder: Incomplete trailing escape (%) pattern
> {code}
> I can confirm that they work correctly on 2.9 and 3.0. Also, the usual 
> hdfs:// client works as expected.
> I suspect a relation with HDFS-13176 or HDFS-13582, but I'm not sure what the 
> right fix is. Note that Hive uses % to escape special characters in partition 
> values, so banning % might not be a good option. For example, Hive will 
> create a paths like {{table_name/partition_key=%2F}} when 
> {{partition_key='/'}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to