hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Liang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12373) Trying to construct Path for a file that has colon (":") throws IllegalArgumentException
Date Wed, 30 Aug 2017 21:31:00 GMT

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

Chen Liang commented on HDFS-12373:
-----------------------------------

This seems to be intentional. {{DFSUtilClient.isValidName}} is called when creating a file,
and the comment of this method explicitly says:
{code}
  /**
   * Whether the pathname is valid.  Currently prohibits relative paths,
   * names which contain a ":" or "//", or other non-canonical paths.
   */
{code}

> Trying to construct Path for a file that has colon (":") throws IllegalArgumentException
> ----------------------------------------------------------------------------------------
>
>                 Key: HDFS-12373
>                 URL: https://issues.apache.org/jira/browse/HDFS-12373
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Vlad Rozov
>
> In case a file has colon in its name, org.apache.hadoop.fs.Path, can not be constructed.
For example, I have file "a:b" under /tmp and new Path("file:/tmp", "a:b") throws IllegalArgumentException.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
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