Giter VIP home page Giter VIP logo

rabbitmq-greenplum-loader's Introduction

rabbitmq-greenplum-loader

Use Greenplum's parallel loader to batch load messages from RabbitMQ into Greenplum

Installation

###Dependencies

  • Python - tested with version 2.7.3
  • Running RabbitMQ instance
  • Running Greenplum DB cluster
  • GPFdist started and pointed to the correct data directory

Required Python packages:

Add rgload.py to your path

$ export PATH=$PATH:bin/rgload.py

Usage

Create a configuration file based on sample.ini. Be sure Greenplum and RabbitMQ connectivity options are correct.

Start rgload.py, use a process control system like Supervisor to manage if desired.

$ python rgload.py -c config.ini

Sample expected output:

$ python rgload.py -c test.ini
2013-08-07 14:53:41,789:24125-[INFO]:-Connecting to 172.16.81.133:5672
2013-08-07 14:53:41,839:24125-[INFO]:-Established RabbitMQ connection
2013-08-07 14:53:41,840:24125-[INFO]:-[c]: Greenplum consumer started
2013-08-07 14:53:52,598:24125-[INFO]:-[c]: Starting Greenplum loader process
2013-08-07 14:53:52,635:24228-[INFO]:-[3a044674-7744-48af-ba1a-771f6302f953]: Starting load
2013-08-07 14:53:52,638:24125-[INFO]:-[c]: Starting Greenplum loader process
2013-08-07 14:53:52,653:24229-[INFO]:-[88770bd9-4bb9-40e6-9ee9-072174089a78]: Starting load
2013-08-07 14:53:52,821:24228-[INFO]:-[3a044674-7744-48af-ba1a-771f6302f953]: Load complete
2013-08-07 14:53:52,822:24229-[INFO]:-[88770bd9-4bb9-40e6-9ee9-072174089a78]: Load complete
2013-08-07 14:53:54,741:24125-[INFO]:-Shutting down...
2013-08-07 14:53:54,742:24125-[INFO]:-[c]: Flushing in process loads
2013-08-07 14:53:54,742:24125-[INFO]:-[c]: Starting Greenplum loader process
2013-08-07 14:53:54,743:24125-[INFO]:-[c]: Waiting for loads to finish
2013-08-07 14:53:54,745:24231-[INFO]:-[655174cd-621e-472d-a965-1cb8f7624dd3]: Starting load
2013-08-07 14:53:54,746:24231-[INFO]:-[655174cd-621e-472d-a965-1cb8f7624dd3]: Load complete

Limitations

The following known limitations will be addressed in a future release:

  • Use FIFO pipes instead of files for intermediate data files

rabbitmq-greenplum-loader's People

Contributors

dewoods 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.