Reputation: 1095
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
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