Closed ezolnbl-dpc closed 3 years ago
, i can send messages to kafka,
How did you check it? Can you please give us the specific command or other ways?
Please write actual kafka version because kafka sometimes updates their protocol.
i used the scripts from the kafka distribution: kafka-2.12-2.4.0 kafa-console-producer.sh but i think this has nothing to do with kafka version
i think this has nothing to do with kafka version
I confirmed this point. I tested latest fluent-plugin-kafna / kafka 2.4.0 combo and it worked on my Mac.
...snip...
: using configuration file: <ROOT>
<source>
@type kafka
brokers "127.0.0.1:9092"
get_kafka_client_log true
<topic>
topic example
partition 0
offset -1
</topic>
</source>
<match example.**>
@type stdout
</match>
</ROOT>
2020-02-21 17:50:40 +0900 [info]: starting fluentd-1.9.2 pid=43679 ruby="2.6.3"
2020-02-21 17:50:40 +0900 [info]: spawn command to main: cmdline=["/Users/repeatedly/.rbenv/versions/2.6.3/bin/ruby", "-Eascii-8bit:ascii-8bit", "/Users/repeatedly/dev/fluentd/fluentd/bin/fluentd", "-c", "in_kafka.conf", "--under-supervisor"]
2020-02-21 17:50:41 +0900 [info]: adding match pattern="example.**" type="stdout"
2020-02-21 17:50:41 +0900 [info]: adding source type="kafka"
2020-02-21 17:50:41 +0900 [info]: #0 starting fluentd worker pid=43693 ppid=43679 worker=0
2020-02-21 17:50:41 +0900 [info]: #0 fluentd worker is now running worker=0
2020-02-21 17:50:42 +0900 [info]: #0 New topics added to target list: example
2020-02-21 17:50:42 +0900 [info]: #0 Fetching cluster metadata from kafka://127.0.0.1:9092
2020-02-21 17:50:42 +0900 [info]: #0 Discovered cluster metadata; nodes: 192.168.11.2:9092 (node_id=0)
2020-02-21 17:52:06.479765000 +0900 example: {"k":"v"}
So if ruby-kafka, in_kafka uses this gem internally, can't connect to your cluster, your environment is something wrong for ruby-kafka.
I didn't hit this problem, so I don't have good advise. Need help from windows and kafka expert.
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days
This issue was automatically closed because of stale in 30 days
Problem on windows, everything works fine with kafka. latest version from everything, i can send messages to kafka, i can connect to it but fluent-kafka-plugin can not connect.
localhost is somehow problematic on windows and as i see the connection changed from 127.0.0.1 to localhost at the end: "Timed out while trying to connect to localhost:9092"