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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None
    • 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.02.patch
          2 kB
          Shweta
        2. HDFS-13622.03.patch
          3 kB
          Shweta
        3. HDFS-13622.04.patch
          3 kB
          Shweta
        4. HDFS-13622.05.patch
          2 kB
          Shweta
        5. HDFS-13622.06.patch
          3 kB
          Shweta

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: