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

s3a's use of fake empty directory blobs does not interoperate with other s3 tools

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None

      Description

      Users of s3a may not realize that, in some cases, it does not interoperate well with other s3 tools, such as the AWS CLI. (See HIVE-13778, IMPALA-3558).

      Specifically, if a user:

      • Creates an empty directory with hadoop fs -mkdir s3a://bucket/path
      • Copies data into that directory via another tool, i.e. aws cli.
      • Tries to access the data in that directory with any Hadoop software.

      Then the last step fails because the fake empty directory blob that s3a wrote in the first step, causes s3a (listStatus() etc.) to continue to treat that directory as empty, even though the second step was supposed to populate the directory with data.

      I wanted to document this fact for users. We may mark this as not-fix, "by design".. May also be interesting to brainstorm solutions and/or a config option to change the behavior if folks care.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fabbri Aaron Fabbri
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: