kafka本地安装报错

kafka本地安装报错_第1张图片

Error: VM option ‘UseG1GC’ is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
#打开 bin/kafka-run-class.sh
KAFKA_JVM_PERFORMANCE_OPTS=“-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true”
#删除-XX:+UseG1GC
KAFKA_JVM_PERFORMANCE_OPTS=“-server -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true”
#重启kafka集群

你可能感兴趣的:(kafka,分布式)