Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8616

ViewFS configuration requires a trailing slash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha
    • 2.0.3-alpha
    • viewfs
    • None

    Description

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

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

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

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

      Attachments

        1. HADOOP-8616.patch
          5 kB
          Aaron Myers
        2. HADOOP-8616.patch
          4 kB
          Sandy Ryza
        3. HADOOP-8616.patch
          2 kB
          Sandy Ryza

        Activity

          People

            sandyr Sandy Ryza
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: