OnPrem Nussknacker instance with Azure Event Hub & Azure Schema Registry #5527
Replies: 1 comment 4 replies
-
Hi, have you read this: https://nussknacker.io/documentation/docs/integration/KafkaIntegration/#azure-based-schema-registry---connection-and-authentication documentation section? Regarding multiple event hubs. What do you exactly mean by that? Because in Azure terminology event hub is something like Kafka topic, so multiple event hubs is just a typical situation when you configure connection once and new topics just appear in the Nussknacker designer instanly when they are available. Do yo mean multiple event hub namespaces? If so, you can achieve that by configuring multiple component provider using the same With regards to pasted configs:
|
Beta Was this translation helpful? Give feedback.
-
How to configure the OnPrem Nussknacker instance with Azure Event Hub. I was following the QuickStart guide with FLink.
I was able to install the Nussknacker OnPrem instance in Docker by pointing to my external Kafka instance, it working fine.
Can't found any sample (Yaml file) to configure OnPrem Nussknacker instance with Azure Event Hub and Azure Schema Registry. I changed the config to pointing Azure Event Hub, and also changed the Schema registry to pointing Azure Schema Registry by following [https://techcommunity.microsoft.com/t5/azure-paas-blog/how-to-migrate-schema-registry-from-confluent-to-azure-event-hub/ba-p/3565403](Microsoft Link). But its throwing error as below.
[2024-02-10 08:21:34,906] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (xxxxxx.servicebus.windows.net/xx.yy.zz.19:9093) terminated during authentication. This may happen due to any of the following reasons: (1) Authentication failed due to invalid credentials with brokers older than 1.0.0, (2) Firewall blocking Kafka TLS traffic (eg it may only allow HTTPS traffic), (3) Transient network issue. (org.apache.kafka.clients.NetworkClient)
AKHQ is working fine after updating it to latest image, but still the schema registry is not working with azure event hub.
Can you please share some sample for configuring the OnPrem Instance with Azure Event Hub and Azure Schema Registry ?
Also, my requirement is to connect multiple Event Hubs with OnPrem Instance.
Nussknacker Config
components.kafka { config: { kakf1.kafkaProperties { #we want to pass earliest in benchmarks, it's not easy to override it in a different way "auto.offset.reset": ${KAFKA_AUTO_OFFSET_RESET} "bootstrap.servers": "xxxxxxx.servicebus.windows.net:9093" "security.protocol": "SASL_SSL" "sasl.mechanism": "PLAIN" "sasl.jaas.config": "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"$ConnectionString\" password=\"Endpoint=sb://xxxxxxx.servicebus.windows.net/;SharedAccessKeyName=SendAndListen;SharedAccessKey=xxxxxxx\";" } schemaRegistryCacheConfig { availableSchemasExpirationTime: ${AVAILABLE_SCHEMAS_EXPIRATION_TIME} } } }
Schema Registry (through .env file)
SCHEMA_REGISTRY_HOST_NAME = schemaregistry SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS = xxxxxxxx.servicebus.windows.net:9093 SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL = SASL_SSL SCHEMA_REGISTRY_KAFKASTORE_SASL_MECHANISM = PLAIN SCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG = org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="Endpoint=sb://xxxxxx.servicebus.windows.net/;SharedAccessKeyName=SendAndListen;SharedAccessKey=xxxxxxxxxx";
Beta Was this translation helpful? Give feedback.
All reactions