[ 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org