Beam project using public Oslo City Bike data
- Java 8 (Java 9 or above are not officially supported by Beam yet)
- Maven 3.5.x
mvn compile exec:java \
-Pdirect-runner \
-Dexec.mainClass=com.mehmandarov.beam.OsloCityBikeBasic \
-Dexec.args=" \
--stationMetadataInputFile=src/main/resources/bikedata-stations-example.txt \
--stationOutput=bikedatalocal"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"