Kafka Fails To Start

I have a Docker Desktop running on my mac and I just pulled down the latest Apache Kafka image.
When I run the command below, it immediately fails.

docker run -d --name broker apache/kafka:latest

This is the log entry. Any ideas what’s causing this?

===> User
uid=1000(appuser) gid=1000(appuser) groups=1000(appuser)
===> Setting default values of environment variables if not already set.
CLUSTER_ID not set. Setting it to default value: "5L6g3nShT-eMCtK--X86sw"
===> Configuring ...
===> Launching ...
===> Using provided cluster id 5L6g3nShT-eMCtK--X86sw ...
# # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=0x0000ffff84d3fc5c, pid=13, tid=384 # # JRE version: (21.0.5+11) (build ) # Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64) # Problematic frame: # j java.lang.System.registerNatives()V+0 java.base # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /tmp/hs_err_pid13.log [0.014s][warning][os] Loading hsdis library failed # # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #

Maybe check this post related to Mac and Java.

I tried adding the -e flag but still getting the same issue.

docker run -d -e JAVA_OPTS=“-XX:UseSVE=0” --name broker apache/kafka:latest

What CPU do you use?

Also which Docker Desktop are you using? Because there were other issues fixed by the new v4.39 release