upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

Kafka UI with Upstash Kafka #31

Open JonhnyDev opened 1 year ago

JonhnyDev commented 1 year ago

This config:

kafka:
  clusters:
    - name: myclustername
      bootstrapServers: "url:9092"
      properties:
        sasl.mechanism: SCRAM-SHA-512
        security.protocol: SASL_SSL
        sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="user" password="pass";    

return kafka UI in blank (without topics, consumes...)

and this configuration with docker composer:

version: '2'
services:
  kafka-ui:
    image: provectuslabs/kafka-ui
    container_name: kafka-ui
    ports:
      - "8080:8080"
    restart: always
    environment:
      - KAFKA_CLUSTERS_0_NAME=myclustername
      - KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=url:9092
      - KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL=SASL_SSL
      - KAFKA_CLUSTERS_0_PROPERTIES_SASL_MECHANISM=SCRAM-SHA-512
      - KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG=org.apache.kafka.common.security.scram.ScramLoginModule required username='user' password='pass'

return this error: image

500 Internal Server Error Error while creating AdminClient for Cluster myclustername

user, pass, url and port working with NodeJS to producer and consume.

doc reference: https://docs.upstash.com/kafka/howto/monitor-with-kafkaui

mdogan commented 1 year ago

Hi @JonhnyDev,

I've just tried with kafka-ui v0.4.0 and I didn't encounter any issues:

Screen Shot 2022-09-09 at 21 15 55
JonhnyDev commented 1 year ago

Hi @JonhnyDev,

I've just tried with kafka-ui v0.4.0 and I didn't encounter any issues: Screen Shot 2022-09-09 at 21 15 55

* Which kafka-ui version are you using?

* Do you see any exceptions/errors on kafka-ui log?

version latest = 0.4.0 LOGS: Status: Downloaded newer image for provectuslabs/kafka-ui:latest


| | | | | / _| /\ | |_ _ | |/ /_ / _| |___ | || || | | / | '| / | ' / ` / | ' \/ -) | ' </ | _| / / _| _/|__| || _|| // _| ._,_|||\| ||__,|| |__,| |_|

2022-09-09 18:44:13,140 INFO [background-preinit] o.h.v.i.u.Version: HV000001: Hibernate Validator 6.2.0.Final 2022-09-09 18:44:13,169 INFO [main] c.p.k.u.KafkaUiApplication: Starting KafkaUiApplication using Java 13.0.9 on 5de1f246f715 with PID 1 (/kafka-ui-api.jar started by kafkaui in /) 2022-09-09 18:44:13,170 DEBUG [main] c.p.k.u.KafkaUiApplication: Running with Spring Boot v2.6.3, Spring v5.3.15 2022-09-09 18:44:13,170 INFO [main] c.p.k.u.KafkaUiApplication: No active profile set, falling back to default profiles: default 2022-09-09 18:44:15,016 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate: Bootstrapping Spring Data LDAP repositories in DEFAULT mode. 2022-09-09 18:44:15,075 INFO [main] o.s.d.r.c.RepositoryConfigurationDelegate: Finished Spring Data repository scanning in 49 ms. Found 0 LDAP repository interfaces. 2022-09-09 18:44:16,805 INFO [main] o.s.b.a.e.w.EndpointLinksResolver: Exposing 2 endpoint(s) beneath base path '/actuator' 2022-09-09 18:44:17,041 INFO [main] o.s.b.a.s.r.ReactiveUserDetailsServiceAutoConfiguration:

Using generated security password: 405b8c0d-26ed-4662-9b14-f74cef9f6f6e

2022-09-09 18:44:17,171 WARN [main] c.p.k.u.c.a.DisabledAuthSecurityConfig: Authentication is disabled. Access will be unrestricted. 2022-09-09 18:44:17,388 INFO [main] o.s.l.c.s.AbstractContextSource: Property 'userDn' not set - anonymous context will be used for read-write operations 2022-09-09 18:44:17,809 INFO [main] o.s.b.w.e.n.NettyWebServer: Netty started on port 8080 2022-09-09 18:44:17,844 INFO [main] c.p.k.u.KafkaUiApplication: Started KafkaUiApplication in 5.561 seconds (JVM running for 6.477)

JonhnyDev commented 1 year ago

All is INFO only WARN IS: 2022-09-09 18:44:17,171 WARN [main] c.p.k.u.c.a.DisabledAuthSecurityConfig: Authentication is disabled. Access will be unrestricted.