Giter Site home page Giter Site logo

flume-ng-zeromq's Introduction

flume-ng-zeromq

Custom flume-ng source to pull data from ZeroMQ. Note that it assumes PUSH/PULL message scheme. To build use mvn package (note that Java 8 and maven are needed).

Install to flume-ng

This was tested with: flume-ng 1.8/1.7/1.6 and jermq 0.4.4/0.4.3.

The generated JAR needs to be copied to the the plugin directory:

<flume-ng-home>/plugins.d/flume-ng-zeromq/lib

The jeromq (zeromq inplementation in Java) JAR should also be added there as an external dependency:

<flume-ng-home>/plugins.d/flume-ng-zeromq/libext

jeromq JAR could be fetched from here, or built from source.

Configuration Sample

a1.sources.r1.type = org.apache.flume.source.zeromq.ZeroMQSource
a1.sources.r1.port = 5555
a1.sources.r1.hostname = 127.0.0.1

Test Node

Note that it usese vagrant, which have to be first installed for the test node to work.

To start the test node first get into the vagrant directory, and then run vagrant up. To stop the node, run vagrant halt from the same place. Once the test node is up, you can login to it by using vagrant ssh (from the vagrant direcotry). Inside the node, use:

apache-flume-1.8.0-bin/bin/flume-ng agent --conf conf --conf-file example.conf --name a1 -Dflume.root.logger=DEBUG,consol -Dlog4j.configuration=file:///home/vagrant/log4j.properties

To execute the flume-ng agent with the zeromq configuration.

From a separate shell inside the node, run the zmq-client.py script in order to send data into flume.

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.