childe / gohangout

使用 golang 模仿的 Logstash。用于消费 Kafka 数据,处理后写入 ES、Clickhouse 等。
MIT License
1.01k stars 234 forks source link

sasl authenticate error : EOF #221

Closed alisre closed 1 year ago

alisre commented 1 year ago

按以下配置测试一下并给出结果 kafka 3.4 gohangout 1.9.14

inputs:
        - Kafka:
            topic:
                ingress-logs: 1
            codec: json
            consumer_settings:
                bootstrap.servers: "kafka:9092"
                group.id: 'ingress-log'
                max.partition.fetch.bytes: '10485760'
                from.beginning: 'true'
                auto.commit.interval.ms: '5000'
                messages_queue_length: '10'
                sasl.mechanism: 'PLAIN'
                enable.ssl.certificate.verification: false
                security.protocol: SASL_SSL
                ssl.ca.location: /opt/ca.cert
                sasl.user: 'kafkauser'
                sasl.password: ***
- Stdin: {}
filters:
- XXX
outputs:
- Stdout: {}
childe commented 1 year ago

正在修复这个 BUG

childe commented 1 year ago

https://github.com/childe/healer/commit/5b3784b892ff69acf364c2af34f2221a66a95c20 这个 Commit 修复了这个问题,但是我自己写的 kafka 库还不是很稳定,最近改了太多代码。建议先看一下 https://github.com/DukeAnn/gohangout-input-kafka_sarama

alisre commented 1 year ago

好的