Coder Social home page Coder Social logo

kafka_cdc_setup's Introduction

Kafka CDC Setup

Purpose

Test deduplication in Couchbase records using Kafka

Prerequisites

  • Java (11.0.17 preferred)
  • Python (3.10.9 preferred)
  • Couchbase Server 7.1.1
  • Zookeeper & Kafka
  • Couchbase Kafka Source Connector

Instructions for Running and Testing the project Locally

Preparation

a. Have Zookeeper and Kafka Server installed
b. Start Couchbase Server
c. Create a bucket called Source using Magma as the storage engine
d. Under the __default scope, create a collection called inputCollection

Running the script

a. Clone the repository (Otherwise you can also download the zip file of the repository)

> git clone https://github.com/jineshparakh/Kafka_CDC_Setup.git

b. Change the directory. (You can also open this project on any IDE, preferably VSCode)

> cd Kafka_CDC_Setup

c. Update const.py with commands relevant to your machine

d. Setting Up Virtual Environment(Prerequisites: Your System should have Python3 installed)

> pip install virtualenv    #Installing the virtual environment module
> virtualenv venv           #Create virtual environment venv

e. Activating Virtual Environment: On Windows (Tested on Windows 10)

> venv\Scripts\activate    #Activate Virtual Environment 

On macOS and Linux (Tested on MacOs Monterey)

> source venv/bin/activate   #Activate Virtual Environment

f. Installing requirements

> pip install -r requirements.txt    #Installing all the requirements for running the project

g. Once all the requirements are installed, it's time to run the main process

> python main.py    #Starts the process

kafka_cdc_setup's People

Contributors

jineshparakh avatar

Watchers

James Cloos avatar  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.