GithubHelp home page GithubHelp logo

abourakba / apache-beam-dataflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crosscutdata/apache-beam-dataflow

0.0 0.0 0.0 41 KB

Build ETL pipeline using Apache Beam and run in Dataflow in GCP

License: GNU General Public License v3.0

Java 100.00%

apache-beam-dataflow's Introduction

Apache Beam Pipeline in GCP Dataflow

Build ETL pipeline using Apache Beam and run in Dataflow in GCP

Who is this Tutorial Series for

If you are a Java developer who wants to build an ETL pipeline using Apache Beam and want to deploy it in Dataflow service in the Google Cloud Platform, follow us at https://www.youtube.com/@crosscutdata to build and deploy your first ETL pipeline with a lean codebase

Prerequisites

  • This setup is done in a Windoes 10 machine, please figure out the environment setup by yourself if you are using any other OS. for any other.
  • You need to have following softwares installed in your machines
  • As a first step you need to create a gmail account
  • Use that gmail account to create a Google cloud account (https://console.cloud.google.com/)
  • Activate the free trial to get the free $300 USD credit that you can use for next 3 months. You will need a credit card to activate the free trial.
  • Activate the following services in GCP:
    • Artifact Registry (Create a Docker Registry)
    • Cloud build
    • Storage (Create a bucket to store template)
    • Pubsub
    • Bigquery
    • Dataflow
    • Dataflow API
  • Configure Gcloud CLI by opening a command prompt and use the following command gcloud init

Build and Deploy

  • Clone this repository (for better understanding the code, use the feature branch rather than master branch as the master branch will always content the latest code)
  • Open a command prompt and cd (change directory) to the root folder of the cloned repository
  • Build the jar using command
mvn clean install
  • Build and push the template in Artifact Registry of GCP using command
gcloud dataflow flex-template build gs://<BUCKET_PATH_WITH_FOLDER>/dataflow-template.json --image-gcr-path="<ARTIFACT_REGISTRY_PATH>/dataflow:latest" --sdk-language=JAVA --flex-template-base-image=JAVA11 --jar="<FULL_PATH_OF_YOUR_CLONED_FOLDER>\target\pipeline-<VERSION>.jar" --env=FLEX_TEMPLATE_JAVA_MAIN_CLASS="com.crosscutdata.pipeline.textio.TextIOPipeline"
  • Deploy the template in Dataflow of GCP using command
gcloud dataflow flex-template run "data-pipeline" --template-file-gcs-location="gs://<BUCKET_PATH_WITH_FOLDER>/dataflow-template.json" --parameters=configPath=crosscutdata-gcp:crosscutdata-bucket:configs/config_1.3.json
  • Go to GCP Dataflow console to check

apache-beam-dataflow's People

Contributors

crosscutdata avatar sakibulhasan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.