✅ Doris 2.0.1 版本打包成docker 镜像,用docker-compose 启动后BE无法连接到FE

采用的是1FE 1BE

不知道是哪里配置不正确

FE 的日志信息:

2023-09-28 15:06:57,486 WARN (heartbeat mgr|27) [HeartbeatMgr.runAfterCatalogReady():140] get bad heartbeat response: type: BACKEND, status: BAD, msg: java.net.ConnectException: Connection refused (Connection refused), beId: 10074, beHost: 192.168.4.196, bePort: 0, httpPort: 0, brpcPort: 0

BE的日志信息:
2023-09-28T15:05:17+08:00 [Note] [Entrypoint]: MASTER FE is not started. retry.
2023-09-28T15:05:38+08:00 [Note] [Entrypoint]: MASTER FE is not started. retry.
2023-09-28T15:05:59+08:00 [Note] [Entrypoint]: MASTER FE is not started. retry.
2023-09-28T15:06:20+08:00 [Note] [Entrypoint]: MASTER FE is not started. retry.
2023-09-28T15:06:40+08:00 [Note] [Entrypoint]: MASTER FE is not started. retry.

Connection refused (Connection refused) {“lastStreamLoadTime”:-1,“isQueryDisabled”:false,“isLoadDisabled”:false} 275
2023-09-28T15:01:46+08:00 [Note] [Entrypoint]: Verify that BE is registered to FE successfully
2023-09-28T15:01:46+08:00 [Note] [Entrypoint]: Ready to start BE!

请使用 docker logs 查看 BE 的日志,观察是否有诸如

 sysctl -w vm.max_map_count=2000000 

的字样,如有,请至宿主机执行以上命令后再次尝试重启

没有此字样:
是否是和 宿主机 的文件夹使用权限相关

使用的docker 镜像是: apache/doris 2.0.0_alpha-be-x86_64