Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.23.0, 0.24.0
    • 0.23.2
    • fs
    • None
    • Reviewed
    • 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.patch
          1 kB
          Daryn Sharp
        2. HADOOP-8175-2.patch
          2 kB
          Daryn Sharp
        3. HADOOP-8175-2.patch
          3 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: