user10508414
user10508414

Reputation:

How to send the data from Kafka to ElasticSearch using python

i am using Python Language. I have csv file, I need to convert into json and send to kafka and then to ElasticSearch.

I am able to convert Csv to Json and send to kafka consumer. How to get the data from Kafka Consumer to ElasticSearch

Upvotes: 3

Views: 3739

Answers (2)

CarbonRK
CarbonRK

Reputation: 105

You can use Logstash with Kafka input plugin to send data to Elasticsearch. It's easy to configure and run. https://www.elastic.co/guide/en/logstash/current/plugins-inputs-kafka.html

Upvotes: 1

Robin Moffatt
Robin Moffatt

Reputation: 32090

You don't need to write any Python. Kafka itself provides a streaming integration API, called Kafka Connect. To use it, you just configure it with JSON files.

Disclaimer: I work for Confluent, and wrote the above articles.

Upvotes: 1

Related Questions