You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Aaron T. Myers (JIRA)" <ji...@apache.org> on 2012/05/03 05:51:59 UTC
[jira] [Commented] (HADOOP-8349) ViewFS doesn't work when the root
of a file system is mounted
[ https://issues.apache.org/jira/browse/HADOOP-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267148#comment-13267148 ]
Aaron T. Myers commented on HADOOP-8349:
----------------------------------------
My NameNode is running at simon:8020. I have the following in my core-site.xml:
{code}
<property>
<name>fs.default.name</name>
<value>viewfs://vfs-cluster</value>
</property>
<property>
<name>fs.viewfs.mounttable.vfs-cluster.link./nn-root</name>
<value>hdfs://simon:8020/</value>
</property>
{code}
Looking at the contents of the HDFS FS directly yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x - hdfs supergroup 0 2012-05-02 20:40 /nn-root/fizz-buzz
drwxr-xr-x - hdfs supergroup 0 2012-05-02 17:46 /nn-root/foo-bar
drwxrwxrwt - hdfs supergroup 0 2012-04-13 16:53 /nn-root/tmp
drwxr-xr-x - hdfs supergroup 0 2012-05-02 18:05 /nn-root/user
{noformat}
Looking at the contents via ViewFS yields the following output:
{noformat}
$ hadoop fs -ls /nn-root
Found 4 items
drwxr-xr-x - hdfs supergroup 0 2012-05-02 20:40 /nn-root/izz-buzz
drwxrwxrwt - hdfs supergroup 0 2012-04-13 16:53 /nn-root/mp
drwxr-xr-x - hdfs supergroup 0 2012-05-02 17:46 /nn-root/oo-bar
drwxr-xr-x - hdfs supergroup 0 2012-05-02 18:05 /nn-root/ser
{noformat}
Trying to make a directory via ViewFS yields the following output:
{noformat}
$ hadoop fs -mkdir /nn-root/fezz-bezz
-mkdir: Pathname from //fezz-bezz is not a valid DFS filename.
Usage: hadoop fs [generic options] -mkdir [-p] <path> ...
{noformat}
Whereas trying to make a directory directly via HDFS works as expected.
> ViewFS doesn't work when the root of a file system is mounted
> -------------------------------------------------------------
>
> Key: HADOOP-8349
> URL: https://issues.apache.org/jira/browse/HADOOP-8349
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.0.0
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
>
> Viewing files under a ViewFS mount which mounts the root of a file system shows trimmed paths. Trying to perform operations on files or directories under the root-mounted file system doesn't work. More info in the first comment of this JIRA.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira