Java环境的问题,因为Mac中使用了Brew安装了openjdk版本的Java 又安装了Oracle版本的Java,最终导致Java版本依赖错误 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (sharedRuntime.cpp:531), pid=20268, tid=7171 # Error: ShouldNotReachHere() # # JRE version: OpenJDK Runtime Environment (16.0+14) (build 16+14) # Java VM: OpenJDK 64-Bit Server VM (16+14, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64) # 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: # /opt/homebrew/Cellar/kafka/2.7.0/bin/hs_err_pid20268.log # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp #