Skip to content
Snippets Groups Projects
Select Git revision
  • 5da264edcfba455893b8d229cab657aebc0cbd48
  • main default protected
  • results-analysis-scripts
  • v0.10
  • rework-examples
  • otel-demo-dynatrace-example
  • support-empty-query-response
  • java-operator-sdk
  • rework-state-handling
  • quarkus-36
  • bump-kotlinlogging-to-5.0.2
  • use-internal-registry protected
  • v0.9 protected
  • kafka-nodeport-config-windows
  • v0.8 protected
  • test-k3d protected
  • simpleuc4 protected
  • reduce-code-duplication
  • test-coverage
  • code-cleanup
  • cleanup-commit-interval protected
  • v0.10.0 protected
  • v0.9.0 protected
  • v0.8.6 protected
  • v0.8.5 protected
  • v0.8.4 protected
  • v0.8.3 protected
  • v0.8.2 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.0 protected
  • v0.5.2 protected
  • v0.6.4 protected
  • v0.6.3 protected
  • v0.6.2 protected
  • v0.6.1 protected
  • v0.6.0 protected
  • v0.5.1 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
41 results

Uc1BeamSamza.java

Blame
  • Uc1BeamSamza.java 1.38 KiB
    package application;
    
    import org.apache.beam.runners.samza.SamzaRunner;
    import theodolite.commons.beam.AbstractBeamService;
    
    /**
     * Implementation of the use case Database Storage using Apache Beam with the Samza Runner. To
     * execute locally in standalone start Kafka, Zookeeper, the schema-registry and the workload
     * generator. Add
     * --configFactory=org.apache.samza.config.factories.PropertiesConfigFactory
     * --configFilePath=samza-standalone.properties
     * --samzaExecutionEnvironment=STANDALONE --maxSourceParallelism=1024 as program arguments. To
     * persist logs add ${workspace_loc:/uc4-application-samza/eclipseConsoleLogs.log} as Output File
     * under Standard Input Output in Common in the Run Configuration Start via Eclipse Run.
     */
    public final class Uc1BeamSamza extends AbstractBeamService {
    
      /**
       * Private constructor setting specific options for this use case.
       */
      private Uc1BeamSamza(final String[] args) { //NOPMD
        super(args);
        this.options.setRunner(SamzaRunner.class);
      }
    
      /**
       * Main method.
       */
      public static void main(final String[] args) {
    
        // Create application via configurations
        final Uc1BeamSamza uc1 = new Uc1BeamSamza(args);
    
        // Create pipeline with configurations
        final Uc1BeamPipeline pipeline = new Uc1BeamPipeline(uc1.options, uc1.getConfig());
    
        // Submit job and start execution
        pipeline.run().waitUntilFinish();
      }
    }