Getting {:error, {:connect_leader, :timeout}}
on subscribe call
#602
Answered
by
zmstone
yastanotheruser
asked this question in
Q&A
-
Despite including the Mix.install([
{:brod, "~> 4.3"},
{:brod_gssapi, "~> 0.1"}
])
Application.ensure_all_started(:brod)
endpoints = [
{~c"broker1", 9094},
{~c"broker2", 9094},
{~c"broker3", 9094}
]
config = [
ssl: [
cacertfile: ~c"ca.pem",
verify: :verify_peer,
versions: [:"tlsv1.3"]
],
sasl:
{:callback, :brod_gssapi, {:gssapi, ~c"user.keytab", ~c"[email protected]"}},
connect_timeout: 60_000
]
:ok = :brod.start_client(endpoints, :kafka_client, config)
topic = "mytopic"
:ok = :brod.start_consumer(:kafka_client, topic, [])
{:ok, _} = :brod.subscribe(:kafka_client, self(), topic, 0, []) |
Beta Was this translation helpful? Give feedback.
Answered by
zmstone
Oct 29, 2024
Replies: 2 comments 1 reply
-
Hi @yastanotheruser |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yastanotheruser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kafka4beam/kafka_protocol#127