1.启动后第一个报错如下:

[error] k.m.a.c.BrokerViewCacheActor - Failed to get broker metrics for BrokerIdentity(1,192.168.204.111,9999,false,true,Map(PLAINTEXT -> 9092))
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:

修改方法:

修改kafka-server-start.sh

if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
    export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"
    export JMX_PORT="9999"
fi

增加红色部分,指定jmx的端口

同时修改kafka-run-class.sh

# JMX settings
if [ -z "$KAFKA_JMX_OPTS" ]; then
KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=192.168.204.108 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
fi

增加红色部分。

2.第二个报错

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

解决方法:

不要开启JMX with SSL功能。

最新文章

  1. 创建第一个 vlan network "vlan100" - 每天5分钟玩转 OpenStack(94)
  2. GNU make使用变量⑤变量的引用、定义等
  3. T-SQL编程 —— 用户自定义函数(标量函数)
  4. Mybatis 3.3.0 Log4j配置
  5. SQL Server数据库ROW_NUMBER()函数使用详解
  6. linux系统
  7. ZZC语言代码风格
  8. Codeforces Round #338 (Div. 2) B. Longtail Hedgehog dp
  9. lnmp停用nginx,改用apache
  10. or1200下raw-os(仿真环境篇)
  11. linux中文设置
  12. Bash常用快捷键
  13. 如何实现Web聊天
  14. NUMBER_GET_NEXT 获取编号 遇到关于按年度编号的问题
  15. python 密码学编程
  16. php操作Memcache的一个类库
  17. CentOS7 PHP+Redis实现Session共享
  18. notepad 正则表达式 复制 文本
  19. substr、substring和slice的区别
  20. C# WINFORM 打包数据库

热门文章

  1. XX-net https://github.com/XX-net/XX-Net
  2. QTP笔记--检查点、ChildObjects方法
  3. C++ allocator类学习理解
  4. 浅谈 STM32 硬件I2C的使用 (中断方式 无DMA 无最高优先级)(转)
  5. 【转】 Linux 命令解释(Linux基础二)
  6. 汇编指令MOV
  7. Python字符串前缀
  8. go 学习之函数
  9. 北京邀请赛 B. Beautiful Garden
  10. Serilog 自定义 Enricher 来增加记录的信息