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

2.4.0 Python mobile gaming leader_board example is not working

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.5.0
    • examples-python
    • None

    Description

      The leader_board example does not work on DirectRunner. No result are generated.

      Run Injector to simulate data:

        mvn compile exec:java \
        -Dexec.mainClass=org.apache.beam.examples.complete.game.injector.Injector \
        Dexec.args="<gcloud_project> <pubsub_topic> none" 

      Setup virtualenv and install python sdk from https://dist.apache.org/repos/dist/dev/beam/2.4.0/

        virtualenv temp_virtualenv
        . temp_virtualenv/bin/activate && pip install apache-beam-2.4.0-python.zip

      Run leader_board:

        python -m apache_beam.examples.complete.game.leader_board \
        --project=<gcloud_project>\
        --topic projects/<gcloud_project>/topics/<pubsub_topic>\
        --dataset=<bq_dataset> \
        --runner=DirectRunner \
        --table=<bq_table_name>

       

       

      Attachments

        Activity

          People

            yifanzou Yifan Zou
            yifanzou Yifan Zou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: