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

fs -mkdir creates parent directories without the -p option

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3, 2.0.0-alpha, 3.0.0-alpha1
    • 0.23.3, 2.0.2-alpha
    • fs
    • None
    • Incompatible change
    • 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
          46 kB
          Robert Joseph Evans
        2. HADOOP-8551.patch
          46 kB
          John George
        3. HADOOP-8551.patch
          45 kB
          John George
        4. HADOOP-8551.patch
          1 kB
          Daryn Sharp

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment