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 "Eli Collins (JIRA)" <ji...@apache.org> on 2012/07/24 05:01:35 UTC

[jira] [Created] (HADOOP-8616) ViewFS configuration requires a trailing slash

Eli Collins created HADOOP-8616:
-----------------------------------

             Summary: ViewFS configuration requires a trailing slash
                 Key: HADOOP-8616
                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
             Project: Hadoop Common
          Issue Type: Bug
          Components: viewfs
    Affects Versions: 2.0.0-alpha, 0.23.0
            Reporter: Eli Collins


If the viewfs config doesn't have a trailing slash commands like the following fail:

{noformat}
bash-3.2$ hadoop fs -ls
-ls: Can not create a Path from an empty string
Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
{noformat}

We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".

{noformat}
  <property>
  <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
  <value>hdfs://ha-nn-uri</value>
  </property>
{noformat}

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

        

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8616:
-----------------------------------

    Target Version/s: 2.0.3-alpha  (was: 2.0.2-alpha)

+1, the latest patch looks good to me. I'm going to commit this momentarily.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8616:
-----------------------------------

    Attachment: HADOOP-8616.patch

Right after I initially committed the patch, I realized that the new test file was missing the Apache license header. Here's an updated patch which just adds that missing license.

I've reverted my initial commit, and am going to commit this updated patch now, since it differs only in the comment.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421136#comment-13421136 ] 

Eli Collins commented on HADOOP-8616:
-------------------------------------

Thanks to Stephen Chu for identifying this bug.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

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

        

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467706#comment-13467706 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #1214 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1214/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392707)
Revert an errant commit of HADOOP-8616. (Revision 1392705)
HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392703)

     Result = FAILURE
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392707
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsURIs.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392705
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392703
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450224#comment-13450224 ] 

Sandy Ryza commented on HADOOP-8616:
------------------------------------

The problem occurs when the ViewFileSystem attempts to create a ChRootedFileSystem as its target file system.  It calls getPath() on the URI object passed to it, which, for a URI like "hdfs://ha-nn-uri", returns an empty string.  Where does it make the most sense to handle this?  Where the ViewFileSystem reads the config (in the InodeTree constructor)? Where the ViewFileSystem creates the URI (inside the createLink() method in InodeTree)? In the ChRootedFileSystem constructor?
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandy Ryza updated HADOOP-8616:
-------------------------------

    Status: Patch Available  (was: Open)
    
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 2.0.0-alpha, 0.23.0
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451140#comment-13451140 ] 

Aaron T. Myers commented on HADOOP-8616:
----------------------------------------

The patch looks pretty good to me. Two little comments:

# I'd recommend using {{String#isEmpty()}} instead of {{String#length() == 0}}.
# Does a similar change not need to be made to the FileContext side of the house, i.e. ChRootedFs?
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467424#comment-13467424 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2824 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2824/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392707)
Revert an errant commit of HADOOP-8616. (Revision 1392705)

     Result = FAILURE
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392707
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsURIs.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392705
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467408#comment-13467408 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2823 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2823/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392703)

     Result = FAILURE
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392703
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451195#comment-13451195 ] 

Sandy Ryza commented on HADOOP-8616:
------------------------------------

The ChRootedFs constructor takes a Path, not a URI, like the ChRootedFileSystem.  The same problem could occur if ViewFs were passed a URI without a trailing slash, but this would have to be handled in ViewFs.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467691#comment-13467691 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Hdfs-trunk #1183 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1183/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392707)
Revert an errant commit of HADOOP-8616. (Revision 1392705)
HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392703)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392707
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsURIs.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392705
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392703
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandy Ryza updated HADOOP-8616:
-------------------------------

    Attachment: HADOOP-8616.patch
    
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452332#comment-13452332 ] 

Hadoop QA commented on HADOOP-8616:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12544499/HADOOP-8616.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 2 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common:

                  org.apache.hadoop.ha.TestZKFailoverController

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1426//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1426//console

This message is automatically generated.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450796#comment-13450796 ] 

Sandy Ryza commented on HADOOP-8616:
------------------------------------

Is "/" the root of all filesystems, i.e. is [scheme]://[authority]/ always a valid path?
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467400#comment-13467400 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #2801 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2801/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392707)
Revert an errant commit of HADOOP-8616. (Revision 1392705)
HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392703)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392707
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsURIs.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392705
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392703
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Sandy Ryza (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandy Ryza updated HADOOP-8616:
-------------------------------

    Attachment: HADOOP-8616.patch
    
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467402#comment-13467402 ] 

Hudson commented on HADOOP-8616:
--------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2863 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2863/])
    HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392707)
Revert an errant commit of HADOOP-8616. (Revision 1392705)
HADOOP-8616. ViewFS configuration requires a trailing slash. Contributed by Sandy Ryza. (Revision 1392703)

     Result = SUCCESS
atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392707
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsURIs.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392705
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1392703
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java

                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers reassigned HADOOP-8616:
--------------------------------------

    Assignee: Sandy Ryza
    
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HADOOP-8616:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3-alpha
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

I've just committed this to trunk and branch-2.

Thanks a lot for the contribution, Sandy.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-8616.patch, HADOOP-8616.patch, HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450780#comment-13450780 ] 

Daryn Sharp commented on HADOOP-8616:
-------------------------------------

Based on my understanding, I'd saying {{ChRootedFileSystem}} is the best place for the fix.  Anywhere else would be working around its bug.  The handling of the chroot path has always been a bit complex so maybe this is a good time to simplify it.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8616) ViewFS configuration requires a trailing slash

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450914#comment-13450914 ] 

Hadoop QA commented on HADOOP-8616:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12544264/HADOOP-8616.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common:

                  org.apache.hadoop.ha.TestZKFailoverController

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1424//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1424//console

This message is automatically generated.
                
> ViewFS configuration requires a trailing slash
> ----------------------------------------------
>
>                 Key: HADOOP-8616
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8616
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 0.23.0, 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Sandy Ryza
>         Attachments: HADOOP-8616.patch
>
>
> If the viewfs config doesn't have a trailing slash commands like the following fail:
> {noformat}
> bash-3.2$ hadoop fs -ls
> -ls: Can not create a Path from an empty string
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {noformat}
> We hit this problem with the following configuration because "hdfs://ha-nn-uri" does not have a trailing "/".
> {noformat}
>   <property>
>   <name>fs.viewfs.mounttable.foo.link./nameservices/ha-nn-uri</name>
>   <value>hdfs://ha-nn-uri</value>
>   </property>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira