Code Monkey home page Code Monkey logo

ddb-table-comparator's Introduction

Table Comparator

This is a sample library that does a deep compare of 2 dynamodb tables Utilizes the Parallel Scan API

  • The tool assumes some defaults for parallel scan operations but they can be configured from the command (see options below)

  • Requires the region and table information for each table to be compared. Output is logged to logs/application.log file : can be configured using log4j.xml

Version

0.1.0

Tech

Look at pom.xml to see dependencies

Installation and Dependencies

$ git clone [git-repo-url] tablecomparator
$ cd tablecomparator
$ mvn clean install 
$ mkdir -p logs/
$ java -cp target/ddb-sample-tool-0.1.0-jar-with-dependencies.jar com.amitgaur.aws.ddb.tools.TableComparator --help

Sample Usage

java -cp ddb-sample-tool-0.1.0-jar-with-dependencies.jar com.amitgaur.aws.ddb.tools.TableComparator --region1 eu-west-1 --region2 eu-west-1 --table1 64Parts2Host --table2 64Parts2HostRestore &

Options Configurability

  • httpTimeout
  • segments : Number of parallel segment scans
  • itemLimit : Items to be fetched per fetch : rate limiting mechanism on DDB
  • maxCons : Max number of http connections
  • region1 and table1 : region end point and table name for first table
  • region2 and table2 : region end point and table name for second table

Logs

Logs are created in the logs directory in a file called application.log

Development

Want to contribute? Great!

Todos

  • Write Tests
  • Add Code Comments
  • Add Sample Mode

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.