apache / apache/beam

Create a CLI to convert a pipeline to graphviz dot format

Open
#19,689 0 comments 0 reactions 0 assignees View on GitHub
beam-model improvement P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

As a Beam developer (especially one using python or go) I want a way to convert a pipeline to graphviz dot format so that I can easily visualize it.  

The Beam source comes with a great utility in the form of [PortablePipelineDotRenderer.java](https://github.com/apache/beam/blob/2df702a1448fa6cbd22cd225bf16e9ffc4c82595/runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/renderer/PortablePipelineDotRenderer.java#L29). It seems like a great util to wrap with a CLI, so that it can be easily accessed from other languages and just for general ease-of-use for java developers.

The tool would take an input pipeline message as either a path to a file or via stdin, and would output a dot string to stdout or to a file.

I'm happy to make a PR for this.

Imported from Jira [BEAM-7677](https://issues.apache.org/jira/browse/BEAM-7677). Original Jira may contain additional context.
Reported by: chadrik.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.