Skip to content

ad1happy2go/flink-hudi-helm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start

Prerequisites

Install the helm chart for Flink on Kubernetes. See Flink on Kubernetes for more details.

Setting up a docker registry

  1. Point docker-cli to Docker running in minikube
    eval $(minikube -p minikube docker-env)
  2. Start local Docker registry in minikube Docker (the docker command is talking to minikube Docker)
    docker run -d -p 5001:5000 --restart=always --name registry registry:2
    We tunnel port 5001 to 5000, you can choose any available port.

Building the Hudi Flink Docker Image

We need a custom docker image that extends the flink base image and adds the hudi flink example jar to it. You can build this docker image by running the following command:

./gradlew :example:dockerPushImage

This should have pushed the docker image to the docker registry. You can verify this by running

docker images

This should show you the docker image hudi-flink:latest in the list of images.

REPOSITORY                                           TAG                   IMAGE ID       CREATED          SIZE
localhost:5001/hudi/hudi-flink                       latest                87b936181d74   32 minutes ago   1.05GB

Submitting the Flink Job

We can now submit the Flink job to the Flink cluster running in Kubernetes.

./gradlew example:createPod

This will create a pod in Kubernetes that runs the Flink job. You can verify this by running

./gradlew example:openFlinkUI

and then opening the Flink UI in your browser by hitting on http://localhost:8081.

Destroying the Flink job

You can destroy the Flink job by running

./gradlew example:deletePod

About

Flink Hudi Helm Chart Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%