New_Mnemonic
Kaffe to Confluent Kafka using a CA certificate - unable to establish a connection
Hi Everyone,
I am trying to connect Kaffe to Confluent Kafka using a CA certificate but I have been unable to establish a connection from my elixir app to Confluent Kafka.
Here is my Kaffe configuration at the moment.
producer: [
endpoints: [{kafka_host, 29092}],
topics: ["producer_topics"],
partition_strategy: :md5,
#ssl: true,
sasl: %{
mechanism: :plain,
login: env("KAFFE_PRODUCER_USER"),
password: env("KAFFE_PRODUCER_PASSWORD")
}
]
Regards
Most Liked
andyleclair
Here’s a snippet from my (working) config that I use in prod to connect Kaffe to Confluent Kafka
config :kaffe,
consumer: [
endpoints: [{"my kafka cluster url", 9092}],
topics: [ "my topics" ],
consumer_group: "consumer_group_name",
message_handler: MyApp.KafkaConsumer,
worker_allocation_strategy: :worker_per_topic_partition,
rebalance_delay_ms: 30_000,
max_wait_time: 15_000,
offset_reset_policy: :reset_to_earliest,
ssl: true,
sasl: %{ mechanism: :plain, login: "my user", password: "some pw" }
]
I think you might just need to enable ssl? Check the port as well
1
Popular in Questions
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
can someone please explain to me how Enum.reduce works with maps
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
I would like to know what is the best IDE for elixir development?
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Other popular topics
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set?
Thanks.
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New







