kafka-connect-elasticsearch | Kafka Connect Elasticsearch connector | Pub Sub library

 by   confluentinc Java Version: v5.5.15 License: Non-SPDX

kandi X-RAY | kafka-connect-elasticsearch Summary

kandi X-RAY | kafka-connect-elasticsearch Summary

kafka-connect-elasticsearch is a Java library typically used in Messaging, Pub Sub, Kafka applications. kafka-connect-elasticsearch has no bugs, it has no vulnerabilities, it has build file available and it has medium support. However kafka-connect-elasticsearch has a Non-SPDX License. You can download it from GitHub.

Changelog for this connector can be found here. kafka-connect-elasticsearch is a Kafka Connector for copying data between Kafka and Elasticsearch.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              kafka-connect-elasticsearch has a medium active ecosystem.
              It has 693 star(s) with 402 fork(s). There are 248 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 78 open issues and 234 have been closed. On average issues are closed in 212 days. There are 25 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of kafka-connect-elasticsearch is v5.5.15

            kandi-Quality Quality

              kafka-connect-elasticsearch has 0 bugs and 0 code smells.

            kandi-Security Security

              kafka-connect-elasticsearch has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              kafka-connect-elasticsearch code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              kafka-connect-elasticsearch has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              kafka-connect-elasticsearch releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              kafka-connect-elasticsearch saves you 2562 person hours of effort in developing the same functionality from scratch.
              It has 8498 lines of code, 540 functions and 44 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed kafka-connect-elasticsearch and discovered the below as its top functions. This is intended to give you an instant insight into kafka-connect-elasticsearch implemented functionality, and help decide if they suit your requirements.
            • Creates a listener which gets called when bulk processing completes
            • Process a bulk response
            • Handles a failed failed response
            • Reports a bad record to the DLQ queue
            • Customize the HTTP client
            • Gets the ssl context for the client
            • Creates a connection manager
            • Returns a map of ssl configs
            • Builds consumer
            • Call a function with retries
            • Compute the time to sleep in milliseconds
            • Computes and returns a random amount of time in milliseconds
            • Puts records into Elasticsearch
            • Converts a SinkRecord to a DeleteRequest
            • Pre - processes a map value
            • Include primitive type
            • Creates a config definition
            • Add SSL config
            • Add a pending record
            • Get the ES server version number
            • This method returns a list of task configurations
            • Moves offsets for a given topic
            • Gets the offsets to Elasticsearch
            • Closes all partitions
            Get all kandi verified functions for this library.

            kafka-connect-elasticsearch Key Features

            No Key Features are available at this moment for kafka-connect-elasticsearch.

            kafka-connect-elasticsearch Examples and Code Snippets

            No Code Snippets are available at this moment for kafka-connect-elasticsearch.

            Community Discussions

            QUESTION

            Got 500 Request timed out for Kafka Connect REST API POST/PUT/DELETE
            Asked 2022-Mar-22 at 00:56

            I am trying to use Kafka Connect REST API.

            Sometimes, I keep getting timeout issue for POST/PUT/DELETE APIs such deploying new connectors or deleting connectors (no timeout issue for GET).

            The error looks like this:

            ...

            ANSWER

            Answered 2022-Mar-22 at 00:56

            Instead of waiting, I found simply restarting the Kafka Connect, the issue will be gone.

            Source https://stackoverflow.com/questions/71520181

            QUESTION

            How to connect Elasticsearch deployed by Elastic Operator correctly in a Kafka connector?
            Asked 2021-Dec-29 at 20:28

            I have some CDC data in Kafka. Now I am trying to sink from Kafka to Elasticsearch. Here is what I have done so far:

            Step 1 - Deploy Elasticsearch in Kubernetes (succeed)

            I deployed Elasticsearch in Kubernetes by following this tutorial using Elastic Operator:

            1. Deploy ECK in your Kubernetes cluster: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html
            2. Deploy an Elasticsearch cluster: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html
            ...

            ANSWER

            Answered 2021-Dec-29 at 20:28

            First add more background. The way I deployed Kafka is using Strimzi:

            Source https://stackoverflow.com/questions/70267486

            QUESTION

            Configuring connectors for multiple topics on Kafka Connect Distributed Mode
            Asked 2021-Nov-08 at 20:02

            We have producers that are sending the following to Kafka:

            • topic=syslog, ~25,000 events per day
            • topic=nginx, ~5,000 events per day
            • topic=zeek.xxx.log, ~100,000 events per day (total). In this last case there are 20 distinct zeek topics, such as zeek.conn.log and zeek.http.log

            kafka-connect-elasticsearch instances function as consumers to ship data from Kafka to Elasticsearch. The hello-world Sink configuration for kafka-connect-elasticsearch might look like this:

            ...

            ANSWER

            Answered 2021-Nov-08 at 20:02

            In distributed mode, would I still want to submit just a single elasticsearch.properties through a single API call?

            It'd be a JSON file, but yes.

            what dictates the number of workers?

            Up to you. JVM usage is one factor that you can monitor and scale on

            Not really any documentation that I am aware of

            Source https://stackoverflow.com/questions/69888199

            QUESTION

            Retrieve and write TLS CRT kubernetes secret to another pod in Helm template
            Asked 2021-Oct-22 at 20:57

            I have a Kubernetes cluster with Elasticsearch currently deployed.

            The Elasticsearch coordinator node is accessible behind a service via a ClusterIP over HTTPS. It uses a self-signed TLS certificate.

            I can retrieve the value of the CA:

            ...

            ANSWER

            Answered 2021-Oct-22 at 20:57

            Got this working and learned a few things in the process:

            • Secret resources reside in a namespace. Secrets can only be referenced by Pods in that same namespace. (ref). Therefore, I switched to using a shared namespace for elasticsearch + kafka
            • The secret can be used in a straightforward way as documented at https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets. This is not a Helm-specific but rather core Kubernetes feature

            In my case this looked like:

            Source https://stackoverflow.com/questions/69682704

            QUESTION

            Avoid overwriting fields when for null values in Confluent Elasticsearch Connector
            Asked 2021-Oct-07 at 07:34

            I have an enrichment pipeline that updates a dynamic number of fields, writes to Kafka, and then sends to Elasticsearch. We are using the Confluent Elasticsearch Connector.

            E.g., if first record sent to the ES Connector is like:

            ...

            ANSWER

            Answered 2021-Oct-07 at 07:34

            The relevant line of code is here: https://github.com/confluentinc/kafka-connect-elasticsearch/blob/master/src/main/java/io/confluent/connect/elasticsearch/DataConverter.java#L170

            This basically means that the source document is sent as is to the index - no modifications.

            Your best option is probably to add an SMT that reads the source document and removes any fields with null values.

            Source https://stackoverflow.com/questions/69466943

            QUESTION

            How to keep all the settings configured even after restarting a machine with confluent kafka docker-compose configured?
            Asked 2021-Aug-13 at 01:09

            Here's the docker-compose file I am using for kafka and ksqldb setup,

            ...

            ANSWER

            Answered 2021-Aug-12 at 15:24

            Docker volumes are ephemeral, so this is expected behavior.

            You need to mount host volumes for at least the Kafka and Zookeeper containers

            e.g.

            Source https://stackoverflow.com/questions/68759343

            QUESTION

            How to install a custom SMT in confluent kafka docker installation?
            Asked 2021-Jun-27 at 20:19

            I am trying to do event streaming between mysql and elasticsearch, one of the issue I faced was with the JSON object in mysql when transfered to elasticsearch was in JSON string format not as an object.

            I was looking for a solution using SMT, I found this,

            https://github.com/RedHatInsights/expandjsonsmt

            I don't know how to install or load in my kafka or connect container

            Here's my docker-compose file,

            ...

            ANSWER

            Answered 2021-Jun-27 at 20:19

            to install SMT it just the same as installing other connector,

            Copy your custom SMT JAR file (and any non-Kafka JAR files required by the transformation) into a directory that is under one of the directories listed in the plugin.path property in the Connect worker configuration –

            In your case copy to /usr/share/confluent-hub-components

            Source https://stackoverflow.com/questions/68140335

            QUESTION

            Kafka-Elasticsearch Sink Connector not working
            Asked 2021-May-29 at 13:09

            I am trying to send data from Kafka to Elasticsearch. I checked that my Kafka Broker is working because I can see the messages I produce to a topic is read by a Kafka Consumer. However, when I try to connect Kafka to Elasticsearch I get the following error.

            Command:

            ...

            ANSWER

            Answered 2021-May-29 at 13:09

            The Connect container starts Connect Distributed Server already. You should use HTTP and JSON properties to configure the Elastic connector rather than exec into the container shell and issue connect-standalone commands which default to using a broker running in the container itself.

            Similarly, the Elastic quickstart file expects Elasticsearch running within the Connect container, by default

            Source https://stackoverflow.com/questions/67739552

            QUESTION

            Confluent Kafka Connect Elasticsearch connector installation
            Asked 2021-Mar-23 at 22:53

            I'm trying to install Elasticsearch connector to Confluent Kafka Connect. I'm following below instruction: https://docs.confluent.io/kafka-connect-elasticsearch/current/index.html#install-the-connector-using-c-hub
            after executing:

            ...

            ANSWER

            Answered 2021-Mar-23 at 22:53

            curl -s localhost:8083/connector-plugins gives the definitive response from the worker what plugins are installed.

            Per the output in your question, the Elasticsearch sink connector is now installed in your connector. I don't know why the Confluent CLI would not show this.

            Source https://stackoverflow.com/questions/66764663

            QUESTION

            How to write to multiple distinct Elasticsearch clusters using the Kafka Elasticsearch Sink Connector
            Asked 2020-Nov-17 at 19:49

            Is is possible to use a single Kafka instance with the Elasticsearch Sink Connector to write to separate Elasticsearch clusters with the same index? Documentation. The source data may be a backend database or an application. An example use-case is that one cluster may be used for real-time search and the other may be used for analytics.

            If this is possible, how do I configure the sink connector? If not, I can think of a couple of options:

            1. Use 2 Kafka instances, each pointing to a different Elasticsearch cluster. Either write to both, or write to one and copy from it to the other.
            2. Use a single Kafka instance and write a stream processor which will write to both clusters.

            Are there any others?

            ...

            ANSWER

            Answered 2020-Nov-17 at 19:49

            Yes you can do this. You can use a single Kafka cluster and single Kafka Connect worker. One connector can write to one Elasticsearch instance, and so if you have multiple destination Elasticsearch you need multiple connectors configured.

            The usual way to run Kafka Connect is in "distributed" mode (even on a single instance), and then you submit one—or more—connector configurations via the REST API.

            You don't need a Java client to use Kafka Connect - it's configuration only. The configuration, per connector, says where to get the data from (which Kafka topic(s)) and where to write it (which Elasticsearch instance).

            To learn more about Kafka Connect see this talk, this short video, and this specific tutorial on Kafka Connect and Elasticsearch

            Source https://stackoverflow.com/questions/64880196

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install kafka-connect-elasticsearch

            You can download it from GitHub.
            You can use kafka-connect-elasticsearch like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the kafka-connect-elasticsearch component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            Source Code: https://github.com/confluentinc/kafka-connect-elasticsearchIssue Tracker: https://github.com/confluentinc/kafka-connect-elasticsearch/issuesLearn how to work with the connector's source code by reading our Development and Contribution guidelines.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/confluentinc/kafka-connect-elasticsearch.git

          • CLI

            gh repo clone confluentinc/kafka-connect-elasticsearch

          • sshUrl

            git@github.com:confluentinc/kafka-connect-elasticsearch.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Pub Sub Libraries

            EventBus

            by greenrobot

            kafka

            by apache

            celery

            by celery

            rocketmq

            by apache

            pulsar

            by apache

            Try Top Libraries by confluentinc

            librdkafka

            by confluentincC

            ksql

            by confluentincJava

            confluent-kafka-go

            by confluentincGo

            confluent-kafka-python

            by confluentincPython

            confluent-kafka-dotnet

            by confluentincC#