| commit | eb8639b013e9d820a253970ed03ac0e7cfc6e13e | [log] [tgz] |
|---|---|---|
| author | Shunping Huang <shunping@google.com> | Wed Sep 18 13:14:57 2024 -0400 |
| committer | GitHub <noreply@github.com> | Wed Sep 18 13:14:57 2024 -0400 |
| tree | 9860639fe639610b94fd0a1b6ec68e65c95a6529 | |
| parent | 475c98c8779b7f332ce10d56df61ba7652aa3ab7 [diff] |
Add throttling counter in gcsio and refactor retrying (#32428) * Add retry instance that records throttling metric. * Use retry with throttling counters by default. Add pipeline option. * Fix lint * Fix broken tests. * Retrieve a more accurate throttling time from the caller frame. * Apply yapf and linter * Refactoring copy and delete - Remove extra retries for copy, delete, _gcs_object. - Remove the use of client.batch() as the function has no built-in retry. * Fix a typo and apply yapf * Use counter instead of counters in pipeline option. Additionally, the variable name for the new retry object is changed. Add a new pipeline option to enable the use of blob generation to mitigate race conditions (at the expense of more http requests) * Parameterize existing tests for the new pipeline options. * Apply yapf * Fix a typo. * Revert the change of copy_batch and delete_batch and add warning in their docstring. * Fix lint * Minor change according to code review. * Restore the previous tox.ini that got accidentally changed.
Apache Beam is a unified model for defining both batch and streaming data-parallel processing pipelines, as well as a set of language-specific SDKs for constructing pipelines and Runners for executing them on distributed processing backends, including Apache Flink, Apache Spark, Google Cloud Dataflow, and Hazelcast Jet.
Beam provides a general approach to expressing embarrassingly parallel data processing pipelines and supports three categories of users, each of which have relatively disparate backgrounds and needs.
The model behind Beam evolved from several internal Google data processing projects, including MapReduce, FlumeJava, and Millwheel. This model was originally known as the “Dataflow Model”.
To learn more about the Beam Model (though still under the original name of Dataflow), see the World Beyond Batch: Streaming 101 and Streaming 102 posts on O’Reilly’s Radar site, and the VLDB 2015 paper.
The key concepts in the Beam programming model are:
PCollection: represents a collection of data, which could be bounded or unbounded in size.PTransform: represents a computation that transforms input PCollections into output PCollections.Pipeline: manages a directed acyclic graph of PTransforms and PCollections that is ready for execution.PipelineRunner: specifies where and how the pipeline should execute.Beam supports multiple language-specific SDKs for writing pipelines against the Beam Model.
Currently, this repository contains SDKs for Java, Python and Go.
Have ideas for new SDKs or DSLs? See the sdk-ideas label.
Beam supports executing programs on multiple distributed processing backends through PipelineRunners. Currently, the following PipelineRunners are available:
DirectRunner runs the pipeline on your local machine.DataflowRunner submits the pipeline to the Google Cloud Dataflow.FlinkRunner runs the pipeline on an Apache Flink cluster. The code has been donated from dataArtisans/flink-dataflow and is now part of Beam.SparkRunner runs the pipeline on an Apache Spark cluster.JetRunner runs the pipeline on a Hazelcast Jet cluster. The code has been donated from hazelcast/hazelcast-jet and is now part of Beam.Twister2Runner runs the pipeline on a Twister2 cluster. The code has been donated from DSC-SPIDAL/twister2 and is now part of Beam.Have ideas for new Runners? See the runner-ideas label.
Instructions for building and testing Beam itself are in the contribution guide.
Here are some resources actively maintained by the Beam community to help you get started:
To get involved with Apache Beam: