commit | 92b85ab76297b007ce56869708b8c497410d6cbf | [log] [tgz] |
---|---|---|
author | fjp <fjp@google.com> | Tue Aug 11 18:17:03 2015 -0700 |
committer | Davor Bonaci <davorbonaci@users.noreply.github.com> | Tue Aug 11 18:22:31 2015 -0700 |
tree | 0909cd33a1de03a512eb6d49b1436dc874dfe439 | |
parent | d427ab72c545a9fd63600ac3402e80e5c69a4a28 [diff] |
Clarify commandline quoting for DebuggingWordCount ----Release Notes---- [] ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=100438351
Google Cloud Dataflow provides a simple, powerful programming model for building both batch and streaming parallel data processing pipelines. This repository hosts the open-sourced Cloud Dataflow SDK for Java, which can be used to run pipelines against the Google Cloud Dataflow Service.
General usage of Google Cloud Dataflow does not require use of this repository. Instead:
depend directly on a specific version of the SDK in the Maven Central Repository by adding the following dependency to development environments like Eclipse or Apache Maven:
<dependency> <groupId>com.google.cloud.dataflow</groupId> <artifactId>google-cloud-dataflow-java-sdk-all</artifactId> <version>version_number</version> </dependency>
download the example pipelines from the separate DataflowJavaSDK-examples repository.
However, if you'd like to contribute to the SDK, write your own PipelineRunner, or just dig in for the fun of it, please stay with us here!
The SDK is publicly available as a Beta release, and might be changed in backward-incompatible ways.
The Google Cloud Dataflow Service is also publicly available in Beta under the following conditions:
The key concepts in this 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.We provide three PipelineRunners:
DirectPipelineRunner
runs the pipeline on your local machine.DataflowPipelineRunner
submits the pipeline to the Dataflow Service, where it runs using managed resources in the Google Cloud Platform (GCP).BlockingDataflowPipelineRunner
submits the pipeline to the Dataflow Service via the DataflowPipelineRunner
and then prints messages about the job status until the execution is complete.The SDK is built to be extensible and support additional execution environments beyond local execution and the Google Cloud Dataflow Service. In partnership with Cloudera, you can run Dataflow pipelines on an Apache Spark backend using the SparkPipelineRunner
. Additionally, you can run Dataflow pipelines on an Apache Flink backend using the FlinkPipelineRunner
.
This repository consists of three parts:
SDK
module provides a set of basic Java APIs to program against.Examples
module provides a few samples to get started. We recommend starting with the WordCount
example.Contrib
directory hosts community-contributed Dataflow modules.The following command will build both modules and install them in your local Maven repository:
mvn clean install
You can speed up the build and install process by using the following options:
To skip execution of the unit tests, run:
mvn install -DskipTests
While iterating on a specific module, use the following command to compile and reinstall it. For example, to reinstall the examples
module, run:
mvn install -pl examples
Be careful, however, as this command will use the most recently installed SDK from the local repository (or Maven Central) even if you have changed it locally.
If you are using Eclipse integrated development environment (IDE), please additionally review our Eclipse integration instructions.
After building and installing, you can execute the WordCount
and other example pipelines by following the instructions in this README.
We welcome all usage-related questions on Stack Overflow tagged with google-cloud-dataflow
.
Please use issue tracker on GitHub to report any bugs, comments or questions regarding SDK development.