abhishek jha
abhishek jha

Reputation: 1095

Add program arguments in google dataflow program other than pipeline execution parameters

I want to add runtime parameters to google dataflow code other than pipeline execution parameters while executing the maven command.

I am expecting to see it as "args[]" object in the main method.

How do i do it?

Upvotes: 0

Views: 567

Answers (1)

Ben Chambers
Ben Chambers

Reputation: 6130

Dataflow pipelines still have main methods that receive an array of string options. See the WordCount example.

That said, extending pipeline options is also a good way of adding options that are automatically parsed. The WordCount example also adds some parameters to PipelineOptions.

Upvotes: 2

Related Questions