kafka-connect-http | Kafka Connect connector that enables Change Data | Change Data Capture library
kandi X-RAY | kafka-connect-http Summary
kandi X-RAY | kafka-connect-http Summary
Kafka Connect connector that enables Change Data Capture from JSON/HTTP APIs into Kafka.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point
- Observes a Kafka topic from a Kafka topic
- Creates a connector
- Starts the Kafka connect process
- Configure the OkHttpClient
- Resolve SSL socket factory
- Creates a predicate to check that a source record has been reached
- Creates an Offset with the given properties and timestamp
- To KvRecord
- Configures the timer
- Resolves the HTTP response
- Parses the timestamp into instant
- Configures this record parser
- Polls for the given offset
- Maps KvRecord to a SourceRecord
- Initialize the source connector
- Configures the template factory
- Parse an integer range definition
- Creates a Kafka consumer
- Resets the timer
kafka-connect-http Key Features
kafka-connect-http Examples and Code Snippets
public List poll() throws InterruptedException {
throttler.throttle(offset.getTimestamp().orElseGet(Instant::now));
HttpRequest request = requestFactory.createRequest(offset);
HttpResponse response = requestExecutor.execute(request);
maven-dependency-plugin
copy-kafka-connect-plugins
prepare-package
unpack
${project.build.directory}/docker-build/plugins
c
mvn verify -Pdebug -DskipTests
Kafka Connect testcontainers infra is ready
Rest API: http://localhost:33216
Debug agent: localhost:33217
Introduce the path to your connector JSON configuration file:
plugin.path=/kafka-connect-http/kafka-connec
Community Discussions
Trending Discussions on kafka-connect-http
QUESTION
I want to use ready made kafka connector for fetching the data from the REST API. I found kafka-connect-http connector on the confluent hub but this connector does not support pre-authentication of the API.
...ANSWER
Answered 2020-Aug-13 at 07:50I raised this as an issue in the (https://github.com/castorm/kafka-connect-http) and got the response that unfortunately this feature is not supported in the existing code of the connector. So if you have the implementation of the API without authentication then this is the readymade solution for you else you can go for streams etc. Although the author had agreed that he will look into this feature in the coming future.
QUESTION
I am using Confluent HttpSinkConnector and following the steps mentioned in this page: https://docs.confluent.io/current/connect/kafka-connect-http/index.html
I have updated my connector sink properties file after checking all the properties details shown on Control center page. My final properties file is as follows:
...ANSWER
Answered 2020-Apr-28 at 08:26To overcome this exception, in addition to reporter.result.topic.replication.factor and confluent.topic.replication.factor, you'd want to set reporter.error.topic.replication.factor to 1 as well as per kafka-connect-http configuration properties - https://docs.confluent.io/current/connect/kafka-connect-http/connector_config.html
QUESTION
I am using open source jar (https://github.com/thomaskwscott/kafka-connect-http) to create kafka http sink connector to write message to a third party system. I could see Bad certificate error in receiver's end. SSl certificate is not sent as part of request. Does this open source jar NOT support SSL connection?
...ANSWER
Answered 2020-Apr-11 at 11:59It uses HttpUrlConnection
rather than HttpsUrlConnection
, so I would guess no.
But you should really create a Github issue there asking this question.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-connect-http
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page