Name: RADAR-MongoDB-Sink-Connector
Owner: RADAR-CNS
Owner: RADAR-CNS
Description: MongoDbConnector for RADAR-CNS platform
Created: 2017-03-01 16:08:07.0
Updated: 2017-06-21 10:28:59.0
Pushed: 2017-11-30 16:31:46.0
Size: 10479
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Implements the hot-storage support for RADAR-CNS platform using MongoDBSinkConnector
In addition to Zookeeper, Kafka-broker(s), Schema-registry and Rest-proxy, MongoDB should be running with required credentials
Load the radar-mongodb-sink-connector-*.jar
to CLASSPATH
rt CLASSPATH=/path/to/radar-mongodb-sink-connector-0.1.jar
Configure MongoDB Connector properties.
fka consumer configuration
=radar-connector-mongodb-sink
fka connector configuration
ector.class=org.radarcns.mongodb.MongoDbSinkConnector
s.max=1
pics that will be consumed
cs=topics
ngoDB server
o.host=localhost
o.port=27017
ngoDB configuration
o.username=
o.password=
o.database=
llection name for putting data into the MongoDB database. The {$topic} token will be replaced
the Kafka topic name.
go.collection.format={$topic}
ctory class to do the actual record conversion
rd.converter.class=org.radarcns.sink.mongodb.RecordConverterFactoryRadar
For more details visit our MongoDBConnector and Kafka-Connect
Run the connector. To run the connector in standalone mode
(on an enviornment where the Confluent platform is installed):
ect-standalone /etc/schema-registry/connect-avro-standalone.properties path-to-your-mongodb-connector.properties
New converters
org.radarcns.serialization.RecordConverte
org.radarcns.sink.mongodb.converter
packageorg.radarcns.sink.mongodb.RecordConverterFactoryRadar
to be added to the class pathThe 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.