go-kafka-connect | Go library providing bindings for the Kafka connect API | Pub Sub library
kandi X-RAY | go-kafka-connect Summary
kandi X-RAY | go-kafka-connect Summary
Go library providing bindings for the Kafka connect API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- getCreateCmdConfig retrieves the configuration from the command line
- IsUpToDate checks if connector is up to date
- getUpdateCmdConfig returns the config for the update command
- tryUntil runs the given time until the given limit is reached .
- getClient returns client instance
- getConfigFromFolder returns the list of create connectors .
- handleCmd handles configuration
- RunEUpdate updates an existing connector
- RunECreate executes the connector
- newBaseClient returns a new BaseClient .
go-kafka-connect Key Features
go-kafka-connect Examples and Code Snippets
Community Discussions
Trending Discussions on go-kafka-connect
QUESTION
I have created a build of https://github.com/mongodb/mongo-kafka
But how does this run to connect with my running kafka instance.
Even how stupid this question sound. But there is no documentation seems to be available to make this working with locally running replicaset
of mongodb
.
All blogs point to using mongo atlas instead.
If you have a good resource, please guide me towards it.
UPDATE 1 --
Used maven plugin - https://search.maven.org/artifact/org.mongodb.kafka/mongo-kafka-connect
Placed it in kafka plugins, restarted kafka.
UPDATE 2 -- How to enable mongodb as source for kafka?
https://github.com/mongodb/mongo-kafka/blob/master/config/MongoSourceConnector.properties
file to be used as a configuration for Kafka
...ANSWER
Answered 2020-Dec-22 at 19:49Port 8083 is Kafka Connect, which you start with one of the connect-*.sh
scripts.
It is standalone from the broker, and properties do not get set from kafka-server-start
QUESTION
I have a project where I need to get data from JSON files using java and sink it into kafka topic, and then sink that data from the topic to mongodb. I have found the kafka-mongodb connector, but the documentation is available only to connect using confluent plateform. I have tried:
- Download mongo-kafka-connect-1.2.0.jar from Maven.
- Put the file in /kafka/plugins
- Added this line "plugin.path=C:\kafka\plugins" in connect-standalone.properties.
- created MongoSinkConnector.properties.
ANSWER
Answered 2020-Aug-12 at 20:23You are missing the MongoDB driver. The MongoDB connector jar contains only the classes relevant to Kafka Connect but it still needs a driver to be able to connect to a MongoDB instance. You would need to download that driver and copy the jar file to the same path where you've published your connector ( C:\kafka\plugins
).
To keep things clean you should also create another folder inside that plugins directory ( e.g: C:\kafka\plugins\mongodb
) and move all the stuff relevant to this connector there.
Later Edit:
I went through an old(er) setup that I had with Kafka Connect and MongoDB Sink connector and I found the following jars:
This makes me believe that the kafka-connect-mongdb
jar and the mongodb-driver
won't be enough. You can give it a try though.
QUESTION
I am configuring a Kafka Mongodb sink connector on my Windows machine.
My connect-standalone.properties file has
plugin.path=E:/Tools/kafka_2.12-2.4.0/plugins
My MongoSinkConnector.properties file has
...ANSWER
Answered 2020-Mar-23 at 17:26Finally, I could make the mongo-kafka-connector work on Windows.
Here is what worked for me: Kafka installation folder is E:\Tools\kafka_2.12-2.4.0
E:\Tools\kafka_2.12-2.4.0\plugins has mongo-kafka-1.0.1-all.jar file.
I downloaded this from https://www.confluent.io/hub/mongodb/kafka-connect-mongodb Click on the blue Download button at the left to get mongodb-kafka-connect-mongodb-1.0.1.zip file.
There is also the file MongoSinkConnector.properties in the etc folder inside the zip file. Move it to kafka_installation_folder\plugins
My connect-standalone.properties file has the following entries:
QUESTION
When importing data from mongodb to kafka using the connector, https://github.com/mongodb/mongo-kafka, it throws java.lang.IllegalStateException: Queue full
.
I use the default setting of copy.existing.queue.size
, which is 16000, and copy.existing: true
. What value should I set? The collection size is 10G.
Environment:
...ANSWER
Answered 2020-Feb-21 at 09:29Fixed in https://github.com/mongodb/mongo-kafka/commit/7e6bf97742f2ad75cde394d088823b86880cdf4e
and will be released after 1.0.0. So if anyone faces the same issue, please update the version to later than 1.0.0.
QUESTION
I want to stream data from Kafka to MongoDB by using Kafka Connector. I found this one https://github.com/hpgrahsl/kafka-connect-mongodb. But there is no step to do.
After googling, it seems to lead to Confluent Platform what I don't want to use.
Could anyone share me document/guideline how to use kafka-connect-mongodb without using Confluent Platform or another Kafka Connector to stream data from Kafka to MongoDB?
Thank you in advance.
What I tried
Step1: I download mongo-kafka-connect-0.1-all.jar
from maven central
Step2: copy jar file to a new folder plugins
inside kafka
(I use Kafka on Windows, so the directory is D:\git\1.libraries\kafka_2.12-2.2.0\plugins
)
Step3: Edit file connect-standalone.properties
by adding a new line
plugin.path=/git/1.libraries/kafka_2.12-2.2.0/plugins
Step4: I add new config file for mongoDB sink MongoSinkConnector.properties
ANSWER
Answered 2019-Jul-04 at 10:59There is an official source and sink connector from MongoDB themselves. It is available on Confluent Hub: https://www.confluent.io/hub/mongodb/kafka-connect-mongodb
If you don't want to use Confluent Platform you can deploy Apache Kafka yourself - it includes Kafka Connect already. Which plugins (connectors) you use with it is up to you. In this case you would be using Kafka Connect (part of Apache Kafka) plus kafka-connect-mongodb (provided by MongoDB).
Documentation on how to use it is here: https://github.com/mongodb/mongo-kafka/blob/master/docs/sink.md
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-kafka-connect
Go 1.9
Docker (for testing purpose only)
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