How to connect Kafka with Elasticsearch?

我们两清 提交于 2019-12-05 04:22:26

I would suggest using Kafka Connect and its Elasticsearch sink. I actually presented on exactly this subject last night :) Here are the slides.

You can see a detailed example here.

The empty input block for Kafka will not work, since it doesn't know where to get the data from. The minimal config for your scenario will be something like this:

input {
    kafka {
            bootstrap_servers => "localhost:9092"
            topics => "test"
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!