Since your virtual machine does not support the "+ UseCompressedOops" parameter. To fix this, remove this option from the kafka configuration, which will help you start both servers (zookeeper and kafka).
1) Go to the Kafka installation directory:
cd kafka_2.8.0-0.8
2) Edit the installer of the kafka script class:
vi bin/kafka-run-class.sh
3) Find the token "KAFKA_JVM_PERFORMANCE_OPTS" and remove the '-XX: + UseCompressedOops' from this line.
ie, before deleting:
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseCompressedOops -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -Djava.awt.headless=true"
after removal:
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -Djava.awt.headless=true"
4) Run both instances of zookeeper and kafka server
./bin/zookeeper-server-start.sh config/zookeeper.properties
./bin/kafka-server-start.sh config/server.properties
source
share