use of org.apache.beam.examples.complete.kafkatopubsub.options.KafkaToPubsubOptions in project beam by apache.
the class KafkaToPubsub method main.
/**
* Main entry point for pipeline execution.
*
* @param args Command line arguments to the pipeline.
*/
public static void main(String[] args) {
KafkaToPubsubOptions options = PipelineOptionsFactory.fromArgs(args).withValidation().as(KafkaToPubsubOptions.class);
// Create the pipeline
Pipeline pipeline = Pipeline.create(options);
run(pipeline, options);
}
Aggregations