关于Kafka使用IBM Java报错解决方案

安装环境

Ubuntu 14.04

Java IBM Java 1.7.0_79

Kakfa 2.10-0.8.2.1

使用bin/kafka-server-start.sh config/server.properties
 启动kafka

有如下错误出现

<?xml version="1.0" ?>

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

JVMJ9VM007E Command-line option unrecognised: -Xloggc:/opt/kafka_2.10-0.8.2.1/bin/../logs/kafkaServer-gc.log

</verbosegc>

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

解决方案:

打开bin/kafka-run-class.sh

找到

KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps "

把-Xloggc替换为-Xverbosegclog如下

KAFKA_GC_LOG_OPTS="-Xverbosegclog:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps"

重新执行

bin/kafka-server-start.sh config/server.properties

启动成功

时间: 2024-10-12 02:36:50

关于Kafka使用IBM Java报错解决方案的相关文章

Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle

Maven报错 解决方案.ERROR: No goals have been specified for this build. You must specify a valid lifecycle 报错: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal>

MyEclipse10破解replaceJar一步报错解决方案

MyEclipse10破解replaceJar一步报错解决方案 前段时间MyEclipse10到期了,于是去找破解.网上倒是有一个给力的破解器--MyEclipse 9.x Crack.不过在按照步骤破解时却意外的报了一个错误:在进行到replaceJar这一步时,按照步骤的说明应该会弹出一个文件选择框,然后选中MyEclipse目录->Common->plugins目录.但是这里却无法弹出文件选择器,此时查看控制台会发现错误信息: 似乎和操作系统有关? 看看按下replaceJar按钮后的处

android URL中文和空格会报错解决方案

url = URLEncoder.encode(urlStr,"utf-8").replaceAll("\\+", "%20"); //encode会将空格替换为+号,所有要讲+号替换为空格的转义%20 url = url.replaceAll("%3A", ":").replaceAll("%2F", "/"); //encode会把url里的/和:这2个符号变成%

resion 编译时,遇到java报错问题

checking if/usr/lib/jvm/java-1.7.0/bin/java -d64 is Java 1.6... no configure: error: Java1.6 required. /usr/lib/jvm/java-1.7.0/bin/java -d64 returned: java version"1.7.0_55" OpenJDK RuntimeEnvironment (rhel-2.4.7.1.el6_5-x86_64 u55-b13) OpenJDK

安装opesntack mysql报错 解决方案

安装opesntack mysql报错 ERROR : Error appeared during Puppet run: 192.168.1.103_mysql.ppError: mysqladmin -u root  password 'f40e1dec1deb43d3' returned 1 instead of one of [0] # rpm -qa | grep -i mysqlmysql-server-5.1.71-1.el6.x86_64perl-DBD-MySQL-4.013-

LNMP安装报错解决方案

configure: error: no acceptable cc found in $PATH 解决方案:yum install -y gcc configure: error: xml2-config not found. Please check your libxml2 installation. 解决方案:yum install -y libxml2-devel configure: error: Cannot find OpenSSL's <evp.h> 解决方案:yum ins

RabbitMQ&gt;Erlang machine stopped instantly (distribution name conflict?). The service is not restarted as OnFail is set to ignore.-报错解决方案 原来是NNND。。。

>Erlang machine stopped instantly (distribution name conflict?). The service is not restarted as OnFail is set to ignore. -报错解决方案 原来是NNND... RabbitMQ安装的盘符的名字是中文字符 切记:RabbitMQ安装路径不能出现中文字符

Mysql启动报错解决方案:Failed to open log (file &#39;./mysql-bin.000901&#39;, errno 2)

ps -ef|grep mysql 发现里边没有mysql进程,于是进行重启. service mysqld start报错 查看错误日志 tail -100 /usr/local/mysql/var/iZ11yohng9aZ.err(主机名.err) 180223 15:31:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var 180223 15:31:51 InnoDB: The Inn

Django: __init__() missing 1 required positional argument: &#39;on_delete&#39;报错解决方案

最近在使用Python的Django框架开发web站点,通过models.py文件建表后,执行数据库迁移(命令行:mange.py makemigrations)时报错,下面是查看官方文档后找到的解决方案. 官方文档:Model field reference 报错内容: 1 class Guest(models.Model): 2 File "C:\Users\dell\guest\sign\models.py", line 18, in Guest 3 event = models