Git Product home page Git Product logo

s3-search-kafka-sink-msgs's Introduction

Execute S3 Search against Kafka Messages sinked via s3 sink connector

Install Pre-Requisites

Before running the python project, make sure you have the following pre-requisites installed:

AWS-CLI

Install AWS-CLI

gimme-aws-creds

brew install gimme-aws-creds

Python (3.11.6)

Follow the guide - Install Python

Download the Pre-Requisites

Open a terminal and navigate to your project directory. Run the following commands to download and install the pre-requisites:

# Install virtualEnv for Python
pip install virtualenv

# Create a virtualEnv for Python
virtualenv <project-name>
for ex: virtualenv s3-kafka-messages

# Activate the virtualEnv
source <project-name>/bin/activate
for ex: source s3-kafka-messages/bin/activate

# Install required components
pip install -r requirements.txt

Get gimme-aws-creds (Install if you do not have it)

Choose the Product account and save the credentials:

export AWS_PROFILE=Product

Adjust Configurations

Adjust your inputs in the config.ini file based on your goals:

search_critirea         = entry1, entry2
search_date             = yyyy/mm/dd
search_hour             = 0-23
topics                  = topic1, topic2
enable_matched_content  = True/False

Run the Program

  1. Navigate to the shell where you have configured the virtualEnv.

  2. Activate the virtualEnv if it's not already activated by running the following command:

    source <project-name>/bin/activate
    for ex: source s3-kafka-messages/bin/activate
  3. Execute the Python program:

    python search-s3-kafka-messages.py

Now, your Python script will be executed.

s3-search-kafka-sink-msgs's People

Contributors

ramgad avatar

Watchers

 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.