Skip to content

mehmandarov/oslocitybike-basic-beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Beam Oslo City Bike Project

Beam project using public Oslo City Bike data

Running the code

Software Requirements

Running on your local machine

mvn compile exec:java \
      -Pdirect-runner \
      -Dexec.mainClass=com.mehmandarov.beam.OsloCityBikeBasic \
      -Dexec.args=" \
        --stationMetadataInputFile=src/main/resources/bikedata-stations-example.txt \
        --stationOutput=bikedatalocal"

Running on Google Cloud Platform

First you will need to create and download a GCP credentials file.

export GOOGLE_APPLICATION_CREDENTIALS="/example/path/to/your/file/sykkeldata-creds.json"

To run the code, use the following example. Make sure to update --project, --stagingLocation, --output, and --tempLocation. You will also need to make sure that all the Google Storage buckets are in the same region (EU, US, etc.) .

mvn -Pdataflow-runner compile exec:java \
      -Dexec.mainClass=com.mehmandarov.beam.OsloCityBikeBasic \
      -Dexec.args="--project=rm-cx-000000 \
      --stagingLocation=gs://my_oslo_bike_data_folder/testing/ \
      --output=gs://my_oslo_bike_data_folder/testing/output \
      --tempLocation=gs://my_oslo_bike_data_folder/testing/ \
      --runner=DataflowRunner \
      --region=europe-west1"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages