Hadoop Common
  1. Hadoop Common
  2. HADOOP-8551

fs -mkdir creates parent directories without the -p option

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 2.0.0-alpha, 3.0.0
    • 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.

      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

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development