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

Wrong Python example in Flink runner documentation

Details

    Description

      Python example under the Executing a Beam pipeline on a Flink Cluster header will throw this error:

      TypeError: Runner PipelineOptions() is not a PipelineRunner object or the name of a registered runner
      

      Fix:

      import apache_beam as beam
      from apache_beam.options.pipeline_options import PipelineOptions
      options = PipelineOptions([
          "--runner=FlinkRunner",
          "--flink_version=1.8",
          "--flink_master=localhost:8081",
          "--environment_type=LOOPBACK"
      ])
      with beam.Pipeline(options=options) as p:
          ...
      

      Attachments

        Issue Links

          Activity

            People

              BerkayOzturk Berkay Öztürk
              BerkayOzturk Berkay Öztürk
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m