Skip to content

visilicon/elasticsearch-kafka-plugin-1.6.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

elasticsearch-kafka-plugin-1.6.0

a plugin for sync between elasticsearch and kafka

elastic search version : 1.6.0
kafka version : 0.8.2.2

kafka format

kafka message is a json string, you can can unserilized string, and get the related information

{ "_type" : "web", "_index" : "blog", "_id" : "1", "_action": "insert", "title" : "this is a paper about the gw", "content": "blablablabla......" "tag" : [ "paper", "word", "segment" ] }

when you are using this format,you have posted http://ip:port/{_type}/{_index}/{_id} document;
_action support insert, update, delete action, you can add , update , remove the document in the elasticsearch.

you can modify the code, or you can redefine the kafka string format

About

a plugin for sync between elasticsearch and kafka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages