Git Product home page Git Product logo

local-kafka-iceberg-streaming's Introduction

Kafka Iceberg Streaming

This repo provides a demo of the Apache Iceberg Sink Connector for Kafka Connect you can execute locally with docker compose

It extends the docker-spark-iceberg example, so you can also use this environment to test anything related to Iceberg

Docker Compose Details

  • redpanda: Just like Kafka but simpler to setup
  • connect: Adds the Kafka Connect and the Iceberg Sink Connector settings
  • console: Redpanda UI
  • minio: Object storage compatible with Amazon S3
  • aws: AWS CLI to create a Minio bucket
  • spark-iceberg: Spark + Iceberg environment
  • rest: Rest catalog to interact with Iceberg

Redpanda

You can acces the Redpanda UI at http://localhost:18080, there's two main screens you should look at, Topics and Connectors

The control-iceberg topic it's used by the connector while payments is the one you going to publish the messages

Alt text

You'll probabily want to wait until the IcebergSinkConnector be up and running before start publishing at the Topic, just like the image below

Alt text

During the producer execution you can also monitor the screen to check if the connector got any error

Minio

You can acces the Minio UI at http://localhost:9000, it will require an user and a password, both are set to minioadmin

The AWS CLI will create a bucket called warehouse during the docker compose execution, also a dataset and a table will be created by the spark-iceberg container

The script that creates both dataset and table can be found at /spark/create_table.py

Spark-Iceberg

You can open the jupyter lab at http://localhost:8888/lab/tree/notebooks and use the sample notebook to query the table

Refer to docker-spark-iceberg to check more details about it

Benthos

Benthos it's declarative way of building stream processing and is used as the message producer in this example

The benthos.json.kafka.yaml file describes the pipeline, it will consume from the file located at data/* and will publish to the payments Kafka topic

Installing:

curl -Lsf https://sh.benthos.dev | bash

Running:

benthos -c ./benthos.json.kafka.yaml

To make it simpler, you can also run with make produce

local-kafka-iceberg-streaming's People

Contributors

wuerike 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.