Date: Tue, 30 Dec 2025 05:11:55 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 292031] net/kafka: update to 4.1.1 Message-ID: <bug-292031-7788@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292031 Bug ID: 292031 Summary: net/kafka: update to 4.1.1 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: timp87@gmail.com Created attachment 266633 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266633&action=edit port patch Kafka 4 removes Zookeeper support and uses KRaft mode by default now. This impacts upgrade procedure. Changes in the port: - update net/kafka to 4.1.1 - remove KAFKA_DBDIR_KRAFT and KAFKA_CONFIGS_KRAFT, use usual KAFKA_DBDIR and KAFKA_CONFIGS instead. - remove pkg-message TBD - remove JAVA sub pointing to a particular jdk version. Use ${PREFIX}/bin/java instead to be able to switch java version via standard javawrapper if needed. - fix build errors for ETCDIR reinplace by setting exact files to change - enrich log.dirs reinplace with broker.properties and controller.properties - add plugin.path reinplace for connect-standalone.properties and connect-distributed.properties as a hint for users - merge all MKDIRs to save some cpu cycles during build - update rc scipts: -- log4j.properties -> log4j2.yaml -- use ${PREFIX}/bin/java just like described above -- set proper default kafka_connect_config in kafka_connect.in depending on mode How I see the 3.9.1 to 4.x upgrade: - repocopy net/kafka to net/kafka3 - add CONFLICTS to both net/kafka3 and to the patch posted here - add UPDATING entry telling to: -- install net/kafka3 instead of net/kafka -- switch kafka to KRaft mode if it's not -- stop kafka -- install net/kafka instead of net/kafka3 -- rename/copy KAFKA_DBDIR_KRAFT dir (/var/db/kafka-kraft by default) to KAFKA_DBDIR (/var/db/kafka by default) OR adjust `log.dirs` in server.properties, broker.properties and controller.properties to point it to old existing current db dir. -- review/copy params for old KRaft mode configs from ${ETCDIR}/kraft (/usr/local/etc/kafka/kraft by default) to ${ETCDIR} (/usr/local/etc/kafka by default) -- review official instruction https://kafka.apache.org/41/getting-started/upgrade/ and start new kafka I'm asking for testing and any input about proposed upgrade procedure. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292031-7788>
