All Projects → SourceLabOrg → kafka-connect-client

SourceLabOrg / kafka-connect-client

Licence: other
A kafka-connect REST api client for java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to kafka-connect-client

fetch-http-client
A http client wrapper for fetch api with middleware support.
Stars: ✭ 42 (+100%)
Mutual labels:  rest-client
debezium-incubator
Previously used repository for new Debezium modules and connectors in incubation phase (archived)
Stars: ✭ 89 (+323.81%)
Mutual labels:  kafka-connect
tuya-connector
tuya-connector helps you efficiently create cloud development projects regarding the OpenAPI or message subscription capabilities. You can put all the focus on business logic without taking care of server-side programming nor relational databases.
Stars: ✭ 28 (+33.33%)
Mutual labels:  rest-client
RESTEasy
REST API calls made easier
Stars: ✭ 12 (-42.86%)
Mutual labels:  rest-client
RestSharpFramework
Framework for testing RESTful Services with RestSharp and C# HTTP Client
Stars: ✭ 18 (-14.29%)
Mutual labels:  rest-client
http-rider
Simple and Powerful desktop client for working with JSON APIs
Stars: ✭ 27 (+28.57%)
Mutual labels:  rest-client
kafka-connect-splunk
Kafka Connect connector for receiving data and writing data to Splunk.
Stars: ✭ 25 (+19.05%)
Mutual labels:  kafka-connect
midtrans-node
Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module | https://midtrans.com
Stars: ✭ 15 (-28.57%)
Mutual labels:  rest-client
kafka-connect-iot-mqtt-connector-example
Internet of Things Integration Example => Apache Kafka + Kafka Connect + MQTT Connector + Sensor Data
Stars: ✭ 170 (+709.52%)
Mutual labels:  kafka-connect
kafka-compose
🎼 Docker compose files for various kafka stacks
Stars: ✭ 32 (+52.38%)
Mutual labels:  kafka-connect
guvercin
REST Api Client Application
Stars: ✭ 51 (+142.86%)
Mutual labels:  rest-client
microservices-observability
🎉 Microservices Observability - Log Aggregation, Distributed Tracking, Metrics
Stars: ✭ 40 (+90.48%)
Mutual labels:  kafka-connect
radiobrowser4j
RadioBrowser Java API library
Stars: ✭ 30 (+42.86%)
Mutual labels:  rest-client
bitrix
Bitrix24 REST API client that doesn't suck. Suffer no more.
Stars: ✭ 59 (+180.95%)
Mutual labels:  rest-client
godot-unirest
Unirest in GDScript: Simplified, lightweight HTTP client library.
Stars: ✭ 32 (+52.38%)
Mutual labels:  rest-client
kafka-connect-kcql-smt
Kafka-Connect SMT (Single Message Transformations) with SQL syntax (Using Apache Calcite for the SQL parsing)
Stars: ✭ 27 (+28.57%)
Mutual labels:  kafka-connect
kafka-connect-transform-kryptonite
Kryptonite for Kafka is a client-side 🔒 field level 🔓 crypto library for Apache Kafka® currently focused on Kafka Connect scenarios. It's an ! UNOFFICIAL ! community project
Stars: ✭ 30 (+42.86%)
Mutual labels:  kafka-connect
sdmx-rest4js
JavaScript client for SDMX services
Stars: ✭ 15 (-28.57%)
Mutual labels:  rest-client
Taviloglu.Wrike.ApiClient
.NET Client for Wrike API
Stars: ✭ 24 (+14.29%)
Mutual labels:  rest-client
oracdc
Oracle database CDC (Change Data Capture)
Stars: ✭ 51 (+142.86%)
Mutual labels:  kafka-connect

Kafka-Connect Java REST API Client

What is it?

This library provides an easy to use client library for interacting with the Kafka-Connect REST service (V4).

How to use this library

This client library is released on Maven Central. Add a new dependency to your project's POM file:

<dependency>
    <groupId>org.sourcelab</groupId>
    <artifactId>kafka-connect-client</artifactId>
    <version>4.0.0</version>
</dependency>

Example Code:

/*
 * Create a new configuration object.
 *
 * This configuration also allows you to define some optional details on your connection,
 * such as using an outbound proxy (authenticated or not), SSL client settings, etc..
 */
final Configuration configuration = new Configuration("http://hostname.for.kafka-connect.service.com:8083");

/*
 * Create an instance of KafkaConnectClient, passing your configuration.
 */
final KafkaConnectClient client = new KafkaConnectClient(configuration);

/*
 * Making requests by calling the public methods available on ApiClient.
 * 
 * For example, get a list of deployed connectors:
 */
final Collection<String> connectorList = client.getConnectors();

/*
 * Or to deploy a new connector:
 */
final ConnectorDefinition connectorDefition = client.addConnector(NewConnectorDefinition.newBuilder()
    .withName("MyNewConnector")
    .withConfig("connector.class", "org.apache.kafka.connect.tools.VerifiableSourceConnector")
    .withConfig("tasks.max", 3)
    .withConfig("topics", "test-topic")
    .build()
));

/*
 * See KafkaConnectClient for other available operations.
 */

Public methods available on KafkaConnectClient can be found here

Communicating with HTTPS enabled Kafka-Connect REST server:

/*
 * Create a new configuration object.
 */
final Configuration configuration = new Configuration("https://hostname.for.kafka-connect.service.com:8083");

/*
 * If your JVM's TrustStore has already been updated to accept the certificate installed on your Kafka-Connect 
 * instance, then no further configuration is required. Typically this is done using the 'key-tool' command.
 * 
 * Alternatively, you can configure the path to JKS formatted TrustStore file to validate the host's certificate
 * with.
 */
configuration.useTrustStore(
    new File("/path/to/truststore.jks"), "Optional Password Here or NULL"
);

/*
 * Optionally instead of providing a TrustStore, you can disable all verifications of Kafka-Connect's SSL certificates.
 * 
 * Doing this is HIGHLY DISCOURAGED!
 */
//configuration.useInsecureSslCertificates();

/*
 * If your Kafka-Connect instance is configured to validate client certificates, you can configure a KeyStore for
 * the client to send with each request:
 */
configuration.useKeyStore(
    new File("/path/to/keystore.jks"), "Optional Password Here or NULL"    
);

/*
 * Create an instance of KafkaConnectClient, passing your configuration.
 */
final KafkaConnectClient client = new KafkaConnectClient(configuration);

Contributing

Found a bug? Think you've got an awesome feature you want to add? We welcome contributions!

Submitting a Contribution

  1. Search for an existing issue. If none exists, create a new issue so that other contributors can keep track of what you are trying to add/fix and offer suggestions (or let you know if there is already an effort in progress). Be sure to clearly state the problem you are trying to solve and an explanation of why you want to use the strategy you're proposing to solve it.
  2. Fork this repository on GitHub and create a branch for your feature.
  3. Clone your fork and branch to your local machine.
  4. Commit changes to your branch.
  5. Push your work up to GitHub.
  6. Submit a pull request so that we can review your changes.

Make sure that you rebase your branch off of master before opening a new pull request. We might also ask you to rebase it if master changes after you open your pull request.

Acceptance Criteria

We love contributions, but it's important that your pull request adhere to some of the standards we maintain in this repository.

  • All tests must be passing!
  • All code changes require tests!
  • All code changes must be consistent with our checkstyle rules.
  • Great inline comments.

Other Notes

Releasing

Steps for proper release:

  • Update release version: mvn versions:set -DnewVersion=X.Y.Z
  • Validate and then commit version: mvn versions:commit
  • Update CHANGELOG and README files.
  • Merge to master.
  • Deploy to Maven Central: mvn clean deploy -P release
  • Create release on Github project.

Changelog

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

View Changelog

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].