Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major 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)

      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

          Daryn Sharp created issue -
          Daryn Sharp made changes -
          Field Original Value New Value
          Fix Version/s 0.24.0 [ 12317652 ]
          Daryn Sharp made changes -
          Link This issue is required by HDFS-3104 [ HDFS-3104 ]
          Daryn Sharp made changes -
          Attachment HADOOP-8175.patch [ 12518547 ]
          Daryn Sharp made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Daryn Sharp made changes -
          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.
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Daryn Sharp made changes -
          Attachment HADOOP-8175-2.patch [ 12518572 ]
          Daryn Sharp made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Daryn Sharp made changes -
          Attachment HADOOP-8175-2.patch [ 12518579 ]
          Daryn Sharp made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Tsz Wo Nicholas Sze made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
          Fix Version/s 0.23.2 [ 12319855 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Fix Version/s 0.24.0 [ 12317652 ]
          Harsh J made changes -
          Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ]
          Eli Collins made changes -
          Link This issue is related to HADOOP-8873 [ HADOOP-8873 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development