EMQX启用kafka桥接插件失败

环境信息

  • EMQX 版本:emqx-ee:4.4.8 docker单节点部署
  • 操作系统及版本:centos 7.6
  • 其他

问题描述

启用emqx_bridge_kafka插件报错:
{emqx_bridge_kafka,{bad_return,{{emqx_bridge_kafka_app,start,[normal,[]]},ok}}}

配置文件及日志

2022-09-19T03:10:09.519795000Z emqx_bridge_kafka is loaded.
2022-09-19T03:10:09.519973000Z 2022-09-19T03:10:09.511929+00:00 [error] Start emqx_bridge_kafka fail
2022-09-19T03:10:09.520152000Z 2022-09-19T03:10:09.512030+00:00 [error] crasher: initial call: application_master:init/4, pid: <0.20652.2>, registered_name: [], exit: {{bad_return,{{emqx_bridge_kafka_app,start,[normal,[]]},ok}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [<0.20651.2>], message_queue_len: 1, messages: [{‘EXIT’,<0.20653.2>,normal}], links: [<0.20651.2>,<0.2116.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 28, reductions: 219; neighbours:
2022-09-19T03:10:09.522635000Z 2022-09-19T03:10:09.512392+00:00 [error] [Plugins] Load plugin emqx_bridge_kafka failed, cannot start plugin emqx_bridge_kafka for {bad_return,{{emqx_bridge_kafka_app,start,[normal,[]]},ok}}

通过你的日志截图,可以看到 127.0.0.1:9092 无法连通,建议你先检查下你的网络相关设置

可是我的kafka不是在本机的,难道要启动emqx_bridge_kafka必须要在本机装一个kafka吗?

肯定要填实际的地址,你这里是本地地址。还有为啥不用模块化功能呢

我以为使用桥接到kafka模块要先在插件里启用emqx_bridge_kafka,没想到是能直接用的,那就没问题了,谢谢