Giter Club home page Giter Club logo

radar-mongodb-sink-connector's Introduction

RADAR-MongoDB-Sink-Connector

Deprecated in favor of RADAR-base/MongoDB-Sink-Connector.

Build Status Codacy Badge

Implements the hot-storage support for RADAR-CNS platform using MongoDBSinkConnector

To Run Radar-MongoDB-Connector

  1. In addition to Zookeeper, Kafka-broker(s), Schema-registry and Rest-proxy, MongoDB should be running with required credentials

  2. Load the radar-mongodb-sink-connector-*.jar to CLASSPATH

    export CLASSPATH=/path/to/radar-mongodb-sink-connector-0.1.jar
  3. Configure MongoDB Connector properties.

    # Kafka consumer configuration
    name=radar-connector-mongodb-sink
    
    # Kafka connector configuration
    connector.class=org.radarcns.mongodb.MongoDbSinkConnector
    tasks.max=1
    
    # Topics that will be consumed
    topics=topics
    
    # MongoDB server
    mongo.host=localhost
    mongo.port=27017
    
    # MongoDB configuration
    mongo.username=
    mongo.password=
    mongo.database=
    
    # Collection name for putting data into the MongoDB database. The {$topic} token will be replaced
    # by the Kafka topic name.
    #mongo.collection.format={$topic}
    
    # Factory class to do the actual record conversion
    record.converter.class=org.radarcns.sink.mongodb.RecordConverterFactoryRadar

    For more details visit our MongoDBConnector and Kafka-Connect

  4. Run the connector. To run the connector in standalone mode (on an enviornment where the Confluent platform is installed):

    connect-standalone /etc/schema-registry/connect-avro-standalone.properties path-to-your-mongodb-connector.properties

Contributing

New converters

  • should implement the interface org.radarcns.serialization.RecordConverte
  • should be located under the org.radarcns.sink.mongodb.converter package
  • should be listed in org.radarcns.sink.mongodb.RecordConverterFactoryRadar to be added to the class path

The converters should take advantages of org.bson.codecs.Encoder<T>. Instances of this class are capable of encoding an instance of the type parameter T into a BSON value. The counter part is org.bson.codecs.Decoder<T>

Code should be formatted using the Google Java Code Style Guide. If you want to contribute a feature or fix browse our issues, and please make a pull request.

radar-mongodb-sink-connector's People

Contributors

afolarin avatar blootsvoets avatar fnobilia avatar nivemaham avatar yatharthranjan avatar

Stargazers

 avatar

Watchers

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