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

S3A create(Path f, FsPermission permission) need create target middle directories?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • None
    • fs/s3
    • None

    Description

      I see the code of s3a create(Path f, etc) which does not create target middle directories,

      So whether exist this one case in which I create only one file  "/a/b/c.txt", It can get "b" as a directory by list "/a/", but If we delete this key "/a/b/c.txt",  "a" and "b" directories are all gone disappear.  

      In the end, I want to ask two questions

      1) Whether HCFS interface create(Path f, etc) need to create target middle directories inside?(sorry did not find doc to say about this)

      2) If not create target middle directories inside, Is the object storage(s3a) scenario described above plausible?

      Attachments

        Activity

          People

            Unassigned Unassigned
            toranger TongMingda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: