могу скинуть ансибл роль, нужно?
kafka-broker: image: vectorized/redpanda:latest ports: - 9092:9092 expose: - 29092 environment: KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false" KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-broker:29092,OUTSIDE://localhost:9092 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT Вот так в докере поднял одну ноду. {"level":"ERROR","timestamp":"2022-09-11T10:16:11.704Z","logger":"kafkajs","message":"[Connection] Response Produce(key: 0, version: 7)","broker":"0.0.0.0:9092","clientId":"kafkajs","error":"This server is not the leader for that topic-partition","correlationId":0,"size":59} {"level":"ERROR","timestamp":"2022-09-11T10:16:11.704Z","logger":"kafkajs","message":"[Producer] Failed to send messages: This server is not the leader for that topic-partition","retryCount":0,"retryTime":252}
Обсуждают сегодня