hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6427) Add Path isQualified
Date Fri, 11 Dec 2009 17:33:18 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789410#action_12789410

Doug Cutting commented on HADOOP-6427:

The namenode should not validate links, right? It should just store the URI.  (We don't want
the namenode creating foreign FileSystem instances.)  

Also, in unix it's quite possible to make a link to a non-existent file with no complaint
whatsoever.  The manual page for the Linux symlink system call says, "No checking of oldpath
is done."  So arguably we should support links to any URI and interpret it on the client when
traversed.  The namenode can still safely optimize the case where the URI is relative.

So I question that we need to ensure that the namenode is always given a fully-qualified path.
 A link to hdfs:///users/foo, linking to the user's home directory in the default filesystem,
however that's configured by the user, might be reasonable.

> Add Path isQualified
> --------------------
>                 Key: HADOOP-6427
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6427
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>         Attachments: hadoop-6427-1.patch
> The Path class has a method to make a path qualified but not to query if the path is
qualified. This is needed for HADOOP-64221. In addition this patch adds tests to TestPath
that cover the file scheme. Note that "fully qualified" applies to domain names not URIs so
this function and it tests also serve to define what we mean by a fully qualified path.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message