-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/kafka] latest update crash #43120
Comments
Hi @benitogf, The latest update of the In order to continue support for both Zookeeper and KRaft modes, the image no longer selects a default mode but has to be configured with some minimum settings depending on the desired mode. To continue using KRaft mode, please use the following docker-compose: containers/bitnami/kafka/docker-compose.yml Lines 1 to 26 in 0039bc1
I would recommend taking a look at the 'Notable changes' section of the README for more details: https://github.com/bitnami/containers/blob/main/bitnami/kafka/README.md#351-debian-11-r4-341-debian-11-r50-332-debian-11-r176-and-323-debian-11-r161 |
I'm sorry for the inconvenience, but due to our release format being based on the upstream version + image revision we don't have a method to control major releases. For production environments, we recommend not using rolling tags such as |
Thanks @migruiz4 I liked better the auto Kraft 😄 wonder if it might come back when zookeper support is dropped? or the plan is to keep zookeeper ? |
Yes, It will default to KRaft again when Zookeeper support is dropped. When Kafka 4.0 is released, the major version that will drop Zookeeper support definitely, we will reconsider the default values for the Although, Kafka gives each version a 3-years support lifecycle, meaning that 3.5 will be supported until at least August 2026, it is also possible that we may need to keep some of those explicit values for a bit longer. It will all depends on what are the Kafka default values for that new 4.0 major version. |
I've recently encountered an issue which I believe could be a result of changes made to the bitnami/kafka:3 Docker image. Our project uses a pinned version in a Docker-compose file, which ideally should ensure a consistent environment. However, it seems that the image behaves differently now, possibly due to some changes introduced in the image itself. The situation becomes particularly confusing because the behavior isn't consistent across environments. In our local development setup, the application works perfectly fine due to Docker's image caching. However, when we try to deploy the same setup within our pipeline, it fails. One potential cause for this could be the introduction of new required environment variables. If this is indeed the case, it would be immensely helpful if an error message could be output stating the need for these new variables. Introducing breaking changes to an existing Docker image version can be quite disruptive, especially if there's no clear communication or error messages guiding us on how to adjust our configurations. Could you please provide some insights into this issue? We'd appreciate any assistance on whether any changes have been made that might explain this behavior and how we can update our setup to work with the current state of the image. Thank you. |
Hi @dspaeth-breuni, As previously mentioned, for production environments we recommend using immutable tags, such as It is difficult to determine the cause of the issue as you haven't shared the error logs, but considering your pipelines would be pulling the latest images, it is possible that the error is caused by the environment variables change. We have updated the bitnami/kafka README.md as well as the example docker-compose.yaml. In the README.md you can find all the documentation required to deploy your Bitnami Kafka containers, as well as the Notable changes section that describe all the changes introduced in the latest release. Note: we are currently facing an issue where the docker-compose-cluster.yaml has not yet being updated, please do not use that file as reference. For a cluster example please use this instead as reference for each node type. |
Hi @migruiz4 , Thank you for your detailed advice on using immutable tags in production environments. I appreciate your recommendation and have taken it into consideration for future deployments. In regard to our issue, it seems that the problem originated from the absence of specific variables including KAFKA_CFG_NODE_ID and KAFKA_CFG_CONTROLLER_QUORUM_VOTERS, among others. The error message "Kafka hasn't been configured to work in either Raft or Zookeper mode" was followed by a warning "Kafka has been configured with a PLAINTEXT listener". This sequence initially led us to believe the problem was an out-of-memory error, rather than the real issue at hand. Another element that compounded our issue was image caching on our local machines. This concealed the problems occurring remotely where fresh images were being pulled, thus adding another layer of complexity to the problem. As for semantic versioning, I would like to clarify if this is not the intended goal? We are currently exploring different versioning strategies and are committed to adopting the best practices in this domain. Thank you once again for updating the bitnami/kafka README.md and the example docker-compose.yaml. We look forward to your response and further assistance. |
I was using |
Hi @erich-ef,
|
bitnami/containers#43120 updated poetry dependencies
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
@migruiz4 I am getting the same issue as mentioned by other people above:
I pulled an immutable tag like suggested and everything. Not sure what else I could do to make this work. |
@chasebenedict1 hey this is the entry I'm running on compose now:
|
As I mentioned in my previous comment #43120 (comment). In order to improve compatibility with both Zookeeper mode and KRaft more, the In case you are looking for
|
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
What is the minimal changes to get this to run, upgrading from 3.4.0 to 3.6.1 broke. Looks like I was only missing the line
|
Hi @niemyjski, I think Kafka 3.6 introduced some breaking changes upstream that affect upgrades, maybe the following guide helps you: https://kafka.apache.org/36/documentation/streams/upgrade-guide If you are affected by both the image refactor and 3.6 upgrade, I would recommend upgrading to 3.5 first, then perform upgrade to 3.6 according to their guide. |
Name and Version
bitnami/kafka
What architecture are you using?
None
What steps will reproduce the bug?
Using the latest build and this compose file:
getting:
and crash
rollback to 3.5.1-debian-11-r3 works
What is the expected behavior?
work with the same configuration? what changes are needed?
What do you see instead?
application crash
Additional information
No response
The text was updated successfully, but these errors were encountered: