doris数据库环境搭建报错(invalid cluster id. ignore)

Posted 胡乐天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了doris数据库环境搭建报错(invalid cluster id. ignore)相关的知识,希望对你有一定的参考价值。

这个问题足足困扰了我五天,好几天鏖战到深夜。成天茶不思饭不想,终于解决,由于网上资料很少,在此记录一下,大家有什么关于doris的问题,欢迎交流哈~

报错信息如下(大概信息如下):

waiting to receive first heartbeat from frontend
waiting to receive first heartbeat from frontend
waiting to receive first heartbeat from frontend
waiting to receive first heartbeat from frontend
waiting to receive first heartbeat from frontend
master client, get client from cache failed.host: , port: 0, code: 7
invalid cluster id. ignore

在FE结点查看BE结点下返回的结果:

+-----------+-----------------+------------+------------+---------------+--------+----------+----------+---------------+---------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+-----------------------------+---------+---------------------------+
| BackendId | Cluster         | IP         | HostName   | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime | LastHeartbeat | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | ErrMsg                      | Version | Status                    |
+-----------+-----------------+------------+------------+---------------+--------+----------+----------+---------------+---------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+-----------------------------+---------+---------------------------+
| 16006     | default_cluster | 172.17.0.2 | 172.17.0.2 | 9050          | -1     | -1       | -1       | NULL          | NULL          | false | false                | false                 | 0         | .000             | 1.000 B       | .000          | 0.00 %  | 0.00 %         | invalid cluster id. ignore. |         | {"lastStreamLoadTime":-1} |
+-----------+-----------------+------------+------------+---------------+--------+----------+----------+---------------+---------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+-----------------------------+---------+---------------------------+

问题解决:

删除Be下:/storage/cluster_id
重新启动Be。

问题原因:

参考官方文档
在这里插入图片描述
可能是因为多次重新搭建FE结点,导致cluster_id文件中记录的id不正确,删除该文件,然后重启BE一般就能解决了。

注意:如果仅仅是port: 0, code: 7这个错误,请使用telnet检查容器端口的联通性。

以上是关于doris数据库环境搭建报错(invalid cluster id. ignore)的主要内容,如果未能解决你的问题,请参考以下文章

05 doris 集群搭建

CentOS 7.1 Bridge启用STP报错"Master connection not found or invalid"

JSP报错The value for the useBean class attribute *** is invalid.

Doris+Flink搭建数据平台

windows搭建zookeeper集群报错之Invalid config, exiting abnormally

继续在 nvidia gpu 上获取 CL_INVALID_KERNEL_ARGS