hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (HADOOP-8349) ViewFS doesn't work when the root of a file system is mounted
Date Thu, 03 May 2012 15:44:50 GMT

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

Aaron T. Myers edited comment on HADOOP-8349 at 5/3/12 3:43 PM:
----------------------------------------------------------------

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 hdfs://simon:8020/
Found 4 items
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 20:40 hdfs://simon:8020/fizz-buzz
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 17:46 hdfs://simon:8020/foo-bar
drwxrwxrwt   - hdfs supergroup          0 2012-04-13 16:53 hdfs://simon:8020/tmp
drwxr-xr-x   - hdfs supergroup          0 2012-05-02 18:05 hdfs://simon:8020/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.
                
      was (Author: atm):
    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
>         Attachments: HADOOP-8349.patch, HADOOP-8349.patch
>
>
> 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

        

Mime
View raw message