Skip to content

Blinq is collection of Apache Beam examples with Kotlin.

Notifications You must be signed in to change notification settings

kelvinoenning/blinq

Repository files navigation

Blinq

Blink is collection of Apache Beam examples with Kotlin.

Apache Beam

Apache Beam is an advanced unified programming model that implement batch and streaming data processing jobs that run on any execution engine.

How To run?

Dependencies

Gradle helps teams build, automate and deliver better software, faster. Also, you need a Java sdk 8 version installed in your system and then export java sdk 8 to you system:

  • export JAVA_HOME=/usr/libexec/java_home -v 1.8

WordCount example

  1. run gradle wordCount --args="--input=<INPUT_LOCATION> --output=<OUTPUT_LOCATION>

PubSubToRow example

  1. export you Google Cloud Credential
  • export GOOGLE_APPLICATION_CREDENTIALS=<GCP_CREDENTIALS>
  1. run gradle pubSubToRow --args="--project=<PROJECT_ID> --topic=<TOPIC> --runner=DataflowRunner --gcpTempLocation=<TMP_LOCATION>"

PubSubToStorage example

  1. export you Google Cloud Credential
  • export GOOGLE_APPLICATION_CREDENTIALS=<GCP_CREDENTIALS>
  1. run gradle pubSubToStorage --args="--topic=<TOPIC> --windowSize=<WINDOW_DURATION> --runner=DataflowRunner --output=<OUTUP_LOCATION> --project=<PROJECT_ID> --jobName=<JOB_NAME>"

License

Copyright © 2020

About

Blinq is collection of Apache Beam examples with Kotlin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages