Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12770

Java Quickstart: Gradle/Dataflow runner command is incorrect

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • website
    • None

    Description

      The Gradle command for running the WordCount example on Dataflow does not actually use the Dataflow Runner. See: https://beam.apache.org/get-started/quickstart-java/#run-wordcount-using-gradle

      But if you add `--runner=DataflowRunner` to -Dexec.args, you get an error: `Exception in thread "main" java.lang.IllegalArgumentException: Unknown 'runner' specified 'DataflowRunner', supported pipeline runners [DirectRunner, PortableRunner, TestUniversalRunner]`

      Per lcwik: "It is likely that the profiles in Maven aren't being converted over correctly to Gradle. (e.g. the additional stuff that -Pdataflow-runner is doing such as adding the DataflowRunner dep to the runtime classpath)"

      So it looks like we actually need to finish implementing the Maven-to-Gradle conversion.

      Attachments

        Issue Links

          Activity

            People

              pcoet David Huntsperger
              pcoet David Huntsperger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m