Kafka connector for Solr Sink
Java
Latest commit 5dd6d87 Jun 17, 2016 @MSurendra committed on GitHub Merge pull request #1 from mishadoff/fix-missing-semicolon
Fix missing semicolon
Permalink
Failed to load latest commit information.
src/main Fix missing semicolon Jun 6, 2016
LICENSE Initial commit Apr 22, 2016
README.md Intial Code Drop Apr 22, 2016
pom.xml Intial Code Drop Apr 22, 2016

README.md

kafka-connect-solr

Kafka Connect Solr for writing data to Solr. The SolrSinkTask can be configured with the following configuration.


solr.cluster.url=http://localhost:8983/solr/kafka-solr/update/json?commit=true
solr.cluster.name=kafka-solr-sink-sample
bulk.size=500
action.type=insert
solr.doc.converter=com.apache.kafka.connect.solr.converter.SolrJsonDocConverter

solr.doc.converter is a com.apache.kafka.connect.solr.converter.Converter that needs to be configured. This will take a SinkRecord object and serialize it in to JSON bytes that can be written to Solr.

If the data in Kafka is already in JSON format then you can use the com.apache.kafka.connect.solr.converter.SolrJsonDocConverter that is available with this library.

If the data in Kafka is in Avro format then you can use the com.apache.kafka.connect.solr.converter.SolrAvroJsonDocConverter that is available with this library.