tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.42k stars 661 forks source link

Support for Azure event hub #657

Open cosad3s opened 3 years ago

cosad3s commented 3 years ago

Hello!

I tried to use AKHQ to connect to a Event Hub (Azure) and it does not work with AKHQ. Example of configuration:

connections:
  my-cluster:
    properties:
      bootstrap.servers: "DOMAIN.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://DOMAIN.servicebus.windows.net/;SharedAccessKeyName=KEYNAME;KEYNAME=VEYVALUE";

(Example from: https://docs.microsoft.com/fr-fr/azure/event-hubs/event-hubs-quickstart-kafka-enabled-event-hubs)

On the AKHQ launched, I get this error in console:

2021-04-07 10:48:20,823 WARN  r-thread-2 .a.k.c.a.AdminClientConfig The configuration 'sasl.jaas.config' was supplied but isn't a known config.
2021-04-07 10:48:22,397 WARN  r-thread-2 org.akhq.log.access        [Date: 2021-04-07T10:48:20.484018+02:00] [Duration: 1913 ms] [Url: GET /api/my-cluster/topic] [Status: 500] [Ip: /127.0.0.1] [User: -]
2021-04-07 10:48:22,414 ERROR Group-1-11 o.a.c.ErrorController      Error for List Log dir
(...)
Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support DESCRIBE_LOG_DIRS

With the same configuration in another tool like Conduktor, it works.

tchiotludo commented 3 years ago

Hi @cactuschibre,

I know that azure event hub is not working for now. We need to disable (silently) some call this is not compatible with event hub. Unfortunately, I don't have any azure account in order to test.

PR are welcome here for someone that have an account :smile:

erkexzcx commented 2 years ago

+1