hadoop/hadoop-tools/hadoop-aws
Steve Loughran aeb2a2f860
HADOOP-17833. Improve Magic Committer performance (#3289) (#4470)
Speed up the magic committer with key changes being

* Writes under __magic always retain directory markers

* File creation under __magic skips all overwrite checks,
  including the LIST call intended to stop files being
        created over dirs.
* mkdirs under __magic probes the path for existence
  but does not look any further.

Extra parallelism in task and job commit directory scanning
Use of createFile and openFile with parameters which all for
HEAD checks to be skipped.

The committer can write the summary _SUCCESS file to the path
`fs.s3a.committer.summary.report.directory`, which can be in a
different file system/bucket if desired, using the job id as
the filename.

Also: HADOOP-15460. S3A FS to add `fs.s3a.create.performance`

Application code can set the createFile() option
fs.s3a.create.performance to true to disable the same
safety checks when writing under magic directories.
Use with care.

The createFile option prefix `fs.s3a.create.header.`
can be used to add custom headers to S3 objects when
created.

Contributed by Steve Loughran.
2022-06-21 10:49:37 +01:00
..
dev-support HADOOP-16202. Enhanced openFile(): hadoop-aws changes. (#2584/3) 2022-04-27 19:23:56 +01:00
src HADOOP-17833. Improve Magic Committer performance (#3289) (#4470) 2022-06-21 10:49:37 +01:00
pom.xml HADOOP-17833. Improve Magic Committer performance (#3289) (#4470) 2022-06-21 10:49:37 +01:00