Open Axelcouty opened 11 months ago
We had not anticipated the use-case of someone using the pubsub-group-kafka-connector against the CPS emulator. To support this, we will need to change the grpcTransportChannelProvider
-based channel construction verifySubscription
to respect the configured cps.endpoint
and possibly make other changes as well. We can consider this a FR.
is this blocking deployment of the connector for you?
Thanks having a look :eyes:,
It is not blocking our deployment but it does prevent us to avoid creating GCP resources when testing locally or within our CI pipelines. We implements custom SMTs for Kafka Connect and test with different Kafka Connectors, we use testcontainers quite a lot and I was trying to integrate it.
Considering subscriptions share the messages from a topic it can be cumbersome to have to create a new subscriptions or even for developers, and provide tooling around it or process to avoid forgotten GCP created resources.
While we could just use isolated environment with the emulator.
Hi,
I'm trying to use this connector locally against the pubsub emulator.
google-cloud-cli:454.0.0-emulators
I am able to create a topic and a subscription with java client andhile I could make the connector work with existing topic & subscription for my true, existing gcloud project I'm not able to do so with the emulator.
Both the emulator & kafka-connect are started as part of a docker-compose:
6.2.1
1.2.0
PUBSUB_EMULATOR_HOST: pubsub:8085
CLOUDSDK_API_ENDPOINT_OVERRIDES_PUBSUB: http(s):pubsub:8085
(I tried several)454.0.0-emulators
gcloud beta emulators pubsub start --host-port 0.0.0.0:8085
I tried with this source connector example:
When I have a look at the connector's state I see the following exception raised:
It looks to me I'm not able to understand what are the required configuration to be able to hit the local emulator from kafka connect.
Additional infos :
My use case is simply to be able to write tests locally when working on SMT development.
Docker compose, pubsub part:
Thanks for your help.