I’m trying to use the downloaded files for kafka, but I’m running into this error VM option ‘UseG1GC” is experimental and must be enabled

  Kiến thức lập trình

I’m trying to use the downloaded files for kafka_2.13-3.8.0, but I’m running into this error VM option ‘UseG1GC” is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.

Some context:
I’m on a Mac using the m1 chip.
I’m trying to run this command $ KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)" to generate a cluster UUID.
My java version is “1.8.0_421”

Does anyone know what I can do to fix this error?

I tried $ export JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC"

and nothing happened.

New contributor

Kirk Chu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT