- Notifications
You must be signed in to change notification settings - Fork1
asman1337/kafka-debezium-oracle-docker-setup
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This guide outlines the setup for Kafka with Debezium and Oracle LogMiner using Docker.
Before you begin, make sure you have the following prerequisites installed and configured on your system:
- Docker: Required for running containers.
- Docker Compose: Used for managing multi-container Docker applications.
- Git: Optional, but useful for cloning the repository.
To get started with Kafka and Debezium with Oracle LogMiner, follow these steps:
Build the Debezium Connect image with OJDBC8:
docker build -t jdbc-debezium-connect .Start the containers using Docker Compose:
docker-compose up- Use
docker-compose up -dto run as a daemon (optional). - Use
docker-compose downto stop the Docker containers.
- Use
This script creates the Oracle LogMiner user with all the required permissions.
Use this script to build the Oracle Docker image from the official Oracle docker-images repository. By default, it will build version 19.3.0e.
Run this script to start the Docker container with Kafka, Debezium, and the Oracle database with the JDBC connector configured.
You can manage connectors using the following commands:
Get connectors:
curl -i -X GET http://localhost:8083/connectors/Load a connector (example using
oracle-logminer.json):curl -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:8083/connectors/ -d @oracle-logminer.jsonDelete a connector (replace
oracle-connectorwith the connector name):curl -i -X DELETE http://localhost:8083/connectors/oracle-connectorCheck Connector Status:
curl -i -X GET http://localhost:8083/connectors/oracle-connector/statusList Connector Tasks:
curl -i -X GET http://localhost:8083/connectors/oracle-connector/tasks
You can also check the status and troubleshoot any problems with the connectors.
- Kafka Dashboard:http://0.0.0.0:8080
- Kafka Broker:http://0.0.0.0:9092
- Oracle Database:http://0.0.0.0:1521
- Developer: Asman Mirza
- Email:rambo007.am@gmail.com
- Date: 24 January, 2024
About
Kafka with Debezium and Oracle Logminer using Docker
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.