Search in sources :

Example 1 with KafkaToPubsubOptions

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);
}
Also used : KafkaToPubsubOptions(org.apache.beam.examples.complete.kafkatopubsub.options.KafkaToPubsubOptions) Pipeline(org.apache.beam.sdk.Pipeline)

Aggregations

KafkaToPubsubOptions (org.apache.beam.examples.complete.kafkatopubsub.options.KafkaToPubsubOptions)1 Pipeline (org.apache.beam.sdk.Pipeline)1