Dan-Dongcheol-Lee / apachebeam-kotlin-blog-examples

ApacheBeam Kotlin Blog examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apache Beam kotlin blog examples

Apache Beam kotlin blog examples

https://blog.papercut.com/apache-beam-in-kotlin-to-reduce-the-boilerplate-code/

Quick Start

The project environment:

  • Refer to build.gradle.kts

Run WordCount kotlin example:

./make.sh runLocal local apachebeam.kotlin.examples.wordcount.WordCount --inputFile=./src/main/resources/apachebeam/kotlin/examples/wordcount/simple.txt --output=./output.txt

WordCount pipeline will run on local and produce the output file in current directory. WordCount pipeline can run on Google Cloud Dataflow if you have a project setup in your local.

./make.sh runCloud <your-project-id> apachebeam.kotlin.examples.wordcount.WordCount --output=<gs://your-cloud-storage-bucket>/output.txt

The 'inputFile' option is defined by default in WordCount options, so that it will run with the input file and produce output files in gs://your-cloud-storage-bucket

About

ApacheBeam Kotlin Blog examples


Languages

Language:Kotlin 48.9%Language:Java 27.1%Language:Shell 24.0%