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

mkdir should print the parent directory in the error message when parent directories do not exist

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      this is a bit misleading:

      $ hdfs  dfs -mkdir /nonexistent/newdir
      mkdir: `/nonexistent/newdir': No such file or directory
      

      I think this command should fail because "nonexistent" doesn't exists...
      the correct would be:

      $ hdfs  dfs -mkdir /nonexistent/newdir
      mkdir: `/nonexistent': No such file or directory
      

        Attachments

        1. HDFS-13622.06.patch
          3 kB
          Shweta
        2. HDFS-13622.05.patch
          2 kB
          Shweta
        3. HDFS-13622.04.patch
          3 kB
          Shweta
        4. HDFS-13622.03.patch
          3 kB
          Shweta
        5. HDFS-13622.02.patch
          2 kB
          Shweta

          Activity

            People

            • Assignee:
              shwetayakkali Shweta
              Reporter:
              kgyrtkirk Zoltan Haindrich
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: