Clone or download
Permalink
Failed to load latest commit information.
.github Make Samza runner in lexicographical order Jun 28, 2018
.test-infra Ensure all pre-commits are run on gradle upgrade. Sep 20, 2018
buildSrc Upgrades Google API Client libraries to 1.24.1 Sep 14, 2018
examples Revert "Adding TopWikipediaSessions integration test" Sep 17, 2018
gradle Revert "Merge pull request #6446: Upgrade gradle wrapper to latest (4… Sep 20, 2018
model Adding URL back to environment for backward compatibility Sep 17, 2018
ownership Remove six from dependency owners Aug 31, 2018
release Add Prow-style OWNERS files. Aug 16, 2018
runners Merge pull request #6225: [BEAM-4176] move some artifact-staging logs… Sep 20, 2018
sdks [Lint] rename variable in graphx/translate.go Sep 20, 2018
vendor/sdks-java-extensions-protobuf [BEAM-4860] Ensure that shaded artifacts that are produced don't leak… Jul 25, 2018
website Migrate beam-site sources to apache/beam Sep 20, 2018
.gitattributes Adding ignore parameters for gitattributes Jun 20, 2018
.gitignore Remove accidentally added .DS_Store file (#6275) Aug 24, 2018
CONTRIBUTING.md Add CONTRIBUTING.md Jan 24, 2018
LICENSE [SQL] Build mega jar for JDBC May 30, 2018
NOTICE Update copyright date in NOTICE Jan 24, 2018
OWNERS Add Prow-style OWNERS files. Aug 16, 2018
README.md Add post-commit tests status to README.md in root Aug 10, 2018
assembly.xml Add Prow-style OWNERS files. Aug 16, 2018
build.gradle Exclude website PULL_REQUEST_TEMPLATE from Rat. Sep 19, 2018
gradle.properties Moving to 2.8.0-SNAPSHOT on master branch. Aug 29, 2018
gradlew Add support to run the Apache Rat plugin Nov 17, 2017
gradlew.bat Add support to run the Apache Rat plugin Nov 17, 2017
settings.gradle [BEAM-5107] Add support for ES-6.x to ElasticsearchIO Sep 6, 2018

README.md

Apache Beam

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 Apex, Apache Flink, Apache Spark, and Google Cloud Dataflow.

Status

Maven Version PyPI version Build Status Coverage Status

Post-commit tests status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
--- --- --- ---

Overview

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.

  1. End Users: Writing pipelines with an existing SDK, running it on an existing runner. These users want to focus on writing their application logic and have everything else just work.
  2. SDK Writers: Developing a Beam SDK targeted at a specific user community (Java, Python, Scala, Go, R, graphical, etc). These users are language geeks, and would prefer to be shielded from all the details of various runners and their implementations.
  3. Runner Writers: Have an execution environment for distributed processing and would like to support programs written against the Beam Model. Would prefer to be shielded from details of multiple SDKs.

The Beam Model

The model behind Beam evolved from a number of 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.

SDKs

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 JIRA.

Runners

Beam supports executing programs on multiple distributed processing backends through PipelineRunners. Currently, the following PipelineRunners are available:

  • The DirectRunner runs the pipeline on your local machine.
  • The ApexRunner runs the pipeline on an Apache Hadoop YARN cluster (or in embedded mode).
  • The DataflowRunner submits the pipeline to the Google Cloud Dataflow.
  • The FlinkRunner runs the pipeline on an Apache Flink cluster. The code has been donated from dataArtisans/flink-dataflow and is now part of Beam.
  • The SparkRunner runs the pipeline on an Apache Spark cluster. The code has been donated from cloudera/spark-dataflow and is now part of Beam.

Have ideas for new Runners? See the JIRA.

Getting Started

Please refer to the Quickstart[Java, Python, Go] available on our website.

If you'd like to build and install the whole project from the source distribution, you may need some additional tools installed in your system. In a Debian-based distribution:

sudo apt-get install \
    openjdk-8-jdk \
    python-setuptools \
    python-pip \
    virtualenv

Then please use the standard ./gradlew build command.

Contact Us

To get involved in Apache Beam:

We also have a contributor's guide.

More Information