Try Beam Playground (Beta)
Beam Playground is an interactive environment to try out Beam transforms and examples without having to install Apache Beam in your environment.
You can try the available Apache Beam examples at Beam Playground.
Beam Playground WordCount Example
How To Add New Examples
To add an Apache Beam example/test/kata into Beam Playground catalog,
add the beam-playground
tag into the file to be added.
beam-playground
tag is a yaml format comment:
// beam-playground:
// name: Name of the example/test/kata
// description: Description of the example/test/kata
// multifile: false
// pipeline_options: --option1 value1 --option2 value2
// default_example: false
// context_line: 10
// categories:
// - category 1
// - category 2
// - category N
// example code
// beam-playground:
// name: Name of the example/test/kata
// description: Description of the example/test/kata
// multifile: false
// pipeline_options: --option1 value1 --option2 value2
// default_example: false
// context_line: 10
// categories:
// - category 1
// - category 2
// - category N
// example code
The ‘beam-playground’ tag consists of the following required elements:
beam-playground
- tag title.name
- string field. Name of the Beam example/test/kata that will be displayed in the Beam Playground examples catalog.description
- string field. Description of the Beam example/test/kata that will be displayed in Beam Playground.multifile
- boolean field. Specifies if the given example consists of multiple files or not.pipeline_options
- string field (optional). Contains information about pipeline options of the Beam example/test/kata.default_example
- boolean field (optional). Specifies if the given example is default or not. If some example is tagged as default it means that this example is shown when its SDK is chosen in Beam Playground. Only one example can be set as a default for each SDK.context_line
- integer field. The line where the main part of the Beam example/test/kata begins.categories
- list type field. Lists categories this example is included into. Available categories are listed in playground/categories.yaml. If some Beam example/kata/test needs to add a new category, then please submit PR with the changes tocategories.yaml
. After the category has been added, it can be used in the examples.
More details on examples in Apache Beam Playground can be found here.
Next Steps
- Try examples in Apache Beam Playground.
- Submit feedback using “Enjoying Playground?” in Apache Beam Playground or via this form.
- Join the Beam users@ mailing list.
- If you’re interested in contributing to the Apache Beam Playground codebase, see the Contribution Guide.
Please don’t hesitate to reach out if you encounter any issues!
Last updated on 2023/05/31
Have you found everything you were looking for?
Was it all useful and clear? Is there anything that you would like to change? Let us know!