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

fs -mkdir creates parent directories without the -p option

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 2.0.0-alpha, 3.0.0-alpha1
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      FsShell's "mkdir" no longer implicitly creates all non-existent parent directories. The command adopts the posix compliant behavior of requiring the "-p" flag to auto-create parent directories.

      Description

      hadoop fs -mkdir foo/bar will work even if bar is not present. It should only work if -p is given and foo is not present.

        Attachments

        1. HADOOP-8551.patch
          1 kB
          Daryn Sharp
        2. HADOOP-8551.patch
          45 kB
          John George
        3. HADOOP-8551.patch
          46 kB
          John George
        4. HADOOP-8551.patch
          46 kB
          Robert Joseph Evans

          Issue Links

            Activity

              People

              • Assignee:
                johnvijoe John George
                Reporter:
                revans2 Robert Joseph Evans
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: