Giter Site home page Giter Site logo

ksnap's Introduction

KSnap

Create and restore point-in-time snapshots of data stored in Apache Kafka.

Usage

$ ksnap --help
usage: __main__.py [-h] -b BROKERS -t TOPICS -d DATA [--ignore-missing-topics]
                   [--threads THREADS] [--consumer-timeout CONSUMER_TIMEOUT]
                   [--kafka-library KAFKA_LIBRARY]
                   {backup,restore}

positional arguments:
  {backup,restore}

optional arguments:
  -h, --help            show this help message and exit
  -b BROKERS, --brokers BROKERS
                        Comma-separated list of brokers in format `host:port`.
  -t TOPICS, --topics TOPICS
                        Comma-separated list of topics
  -d DATA, --data DATA  Directory where this tool will store data or read from
  --ignore-missing-topics
                        Ignore missing topics in Kafka broker
  --threads THREADS     No of threads using for writing messages to Kafka
  --consumer-timeout CONSUMER_TIMEOUT
                        Timeout in seconds for consuming topics
  --kafka-library KAFKA_LIBRARY
                        Which kafka library to use for reading messages

Create point-in-time snapshot of data in topics Topic1 and Topic2 using:

$ mkdir backupDir
$ ksnap backup -b kafka1:9092,kafka2:9092 -t Topic1,Topic2 -d ./backupDir

Restore point-in-time snapshot for Topic1 using:

$ ksnap restore -b kafka1:9092,kafka2:9092 -t Topic1,Topic2 -d ./backupDir

Install

You should use Python 3.6 or above

$ pip install git+https://github.com/EclipseTrading/ksnap.git

ksnap's People

Contributors

alex817 avatar akamensky 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.