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

ViewFS configuration requires a trailing slash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: viewfs
    • Labels:
      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
          2 kB
          Sandy Ryza
        2. HADOOP-8616.patch
          4 kB
          Sandy Ryza
        3. HADOOP-8616.patch
          5 kB
          Aaron Myers

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: