Sink is not able to use kubernetes service #491
-
I am trying to deploy sink inside a kubernetes cluster. Kubernetes cluster host both kafka and clickhouse but in different namespace. I am actuallly using strimizi to deploy kafka cluster and kafka connect. Both the kafka and connect cluster are being deployed properly. Sink is being loaded properly and class is being detected Here is the yaml config for connector apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
name: clickhouse-sink-connector
labels:
strimzi.io/cluster: clickhouse-sink-connect-worker
spec:
class: com.clickhouse.kafka.connect.ClickHouseSinkConnector
tasksMax: 1
config:
ssl: false
client_version: v2
timeoutSeconds: 60
retryCount: 10
topics: activity
hostname: cluster-demo-cluster.clickhouse.svc.cluster.local
database: demodb
password: password
username: admin
port: 8123
value.converter: org.apache.kafka.connect.json.JsonConverter
key.converter: org.apache.kafka.connect.storage.StringConverter
errors.retry.timeout: 60 But the connector is throwing error
Please note, i tried to curl endpoint Also, I am able to connect to clickhouse cluster using credentials provided with command EditUsed the HTTP interface using below command and it works
But when tried with clickhouse URL which is generated in sink, it did not work and throws a 404 status with error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nothing wrong with config here. Recreating minikube cluster solved the issue. |
Beta Was this translation helpful? Give feedback.
Nothing wrong with config here. Recreating minikube cluster solved the issue.