Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 0.24.0
    • Fix Version/s: 0.23.2
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      FsShell mkdir now accepts a -p flag. Like unix, mkdir -p will not fail if the directory already exists. Unlike unix, intermediate directories are always created, regardless of the flag, to avoid incompatibilities at this time.

      Description

      Users require the ability to create a directory iff it doesn't exist. Currently, running FsShell's mkdir twice will result in an already exists error. The unix mkdir -p flag won't fail if the directory already exists. Per parent jira, pig project would also like this feature.

      (Eventually mkdir should probably also stop creating all intermediate dirs unless -p is given, but that's an incompatible change)

        Attachments

        1. HADOOP-8175-2.patch
          2 kB
          Daryn Sharp
        2. HADOOP-8175-2.patch
          3 kB
          Daryn Sharp
        3. HADOOP-8175.patch
          1 kB
          Daryn Sharp

          Issue Links

            Activity

              People

              • Assignee:
                daryn Daryn Sharp
                Reporter:
                daryn Daryn Sharp
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: