无法启动kafka服务器

时间:2016-09-05 15:52:04

标签: apache-kafka

我是一名学生,并试图了解Apache kafka。我能够从http://kafka.apache.org/downloads.html安装kafka。但是,当我尝试启动服务器时,我得到以下错误。

<?xml version="1.0" ?>

<verbosegc xmlns="http://www.ibm.com/j9/verbosegc"  version="R28_Java8_SR1_20150410_1531_B243669_CMPRSS">

JVMJ9VM007E Command-line option unrecognised: -Xloggc:/usr/local/kafka_2.11-0.10.0.1/bin/../logs/kafkaServer-gc.log
</verbosegc> 

错误:无法创建Java虚拟机。 错误:发生了致命异常。程序将退出。

我的Java版本是:

java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480sr1fp1-20150603_01(SR1 FP1))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References      20150410_243669 (JIT enabled, AOT enabled)
J9VM - R28_Java8_SR1_20150410_1531_B243669
JIT  - tr.r14.java_20150402_88976.03
GC   - R28_Java8_SR1_20150410_1531_B243669_CMPRSS
J9CL - 20150410_243669)
JCL - 20150601_01 based on Oracle jdk8u45-b13

该问题与http://grokbase.com/t/kafka/dev/163wdvk75y/jira-created-kafka-3476-xloggc-is-not-recognised-by-ibm-java类似,但没有解决方案

1 个答案:

答案 0 :(得分:0)

根据您提供的链接,这是IBM Java特有的问题。解决方案表明那对我有用:

export KAFKA_GC_LOG_OPTS="-Xverbosegclog:$TRACE_DIR/server-gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps"
export KAFKA_JVM_PERFORMANCE_OPTS="-server -Djava.awt.headless=true"