Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13401

Different behavior in mkdir when the target folder of mount table is uncreated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • federation, hdfs
    • None

    Description

      In federation cases, if we have a config like below:

      <property>
      <name>fs.viewfs.mounttable.ClusterX.link./foo</name>
      <value>hdfs://nn2-clusterx.example.com:8020/footarget</value>
      </property>

      When the folder hdfs://nn2-clusterx.example.com:8020/projects/footarget is not actually exist, the command hdfs dfs ls / can still see the folder, but the folder is not actually exist. then we try to use mkdir command to create the viewfs folder hdfs dfs mkdir /foo, the return code is true, but the folder is not created. However, when we use hdfs dfs mkdir -p /foo/xxx which have a deeper location to create folder, the folder is successfully created. The results in these two cases may be ambigiuous.

      Attachments

        1. HDFS-13401.000.patch
          4 kB
          Jianfei Jiang

        Activity

          People

            Unassigned Unassigned
            jiangjianfei Jianfei Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: