今天尝试通过添加一台fe(fe的4个端口已修改),然后删除一台旧fe, 直到所有fe旧节点全部下线,这样的方式,但在操作第一台新添加的fe的过程中遇到了问题,
新部署的fe follower的4个端口已修改为以下端口,
http_port: 8030 修改为 18030
rpc_port: 9020 修改为 19020
query_port: 9030 修改为 19030
edit_log_port: 9010 修改为 19010
然后加入集群:
ALTER SYSTEM ADD FOLLOWER “192.168.8.104:19010”;
接着启动新部署的fe节点:
/opt/software/starrocks/fe/bin/start_fe.sh --helper 192.168.8.107:9010 --daemon
查看新添加的fe的状态,“Join”和“Alive”一直显示 false,请问这种情况如何处理呢?
mysql> SHOW PROC ‘/frontends’\G
…
*************************** 4. row ***************************
Name: 192.168.8.104_19010_1701333098132
IP: 192.168.8.104
EditLogPort: 19010
HttpPort: 8030
QueryPort: 0
RpcPort: 0
Role: FOLLOWER
ClusterId: 503331877
Join: false
Alive: false
ReplayedJournalId: 0
LastHeartbeat: NULL
IsHelper: true
ErrMsg:
StartTime: NULL
Version: NULL
【新添加的fe的fe.log日志显示如下】
2023-11-30 16:31:53,382 WARN (main|1) [NodeMgr.getClusterIdAndRoleOnStartup():307] current node is not added to the group. please add it first. sleep 5 seconds and retry, current helper nodes: [192.168.8.107:9010]
2023-11-30 16:31:58,385 WARN (main|1) [NodeMgr.getFeNodeTypeAndNameFromHelpers():504] failed to get fe node type from helper node: 192.168.8.107:9010.
java.net.ConnectException: Connection refused (Connection refused)
【附:所有fe的状态】
mysql> SHOW PROC ‘/frontends’\G
*************************** 1. row ***************************
Name: 192.168.8.107_9010_1697364985232
IP: 192.168.8.107
EditLogPort: 9010
HttpPort: 8030
QueryPort: 9030
RpcPort: 9021
Role: LEADER
ClusterId: 503331877
Join: true
Alive: true
ReplayedJournalId: 1477600
LastHeartbeat: 2023-11-30 17:13:19
IsHelper: true
ErrMsg:
StartTime: 2023-11-29 14:56:53
Version: 3.1.2-4f3a2ee
*************************** 2. row ***************************
Name: 192.168.8.106_9010_1698978353186
IP: 192.168.8.106
EditLogPort: 9010
HttpPort: 8030
QueryPort: 9030
RpcPort: 9021
Role: FOLLOWER
ClusterId: 503331877
Join: true
Alive: true
ReplayedJournalId: 1477602
LastHeartbeat: 2023-11-30 17:13:19
IsHelper: true
ErrMsg:
StartTime: 2023-11-29 14:56:54
Version: 3.1.2-4f3a2ee
*************************** 3. row ***************************
Name: 192.168.8.108_9010_1701331814389
IP: 192.168.8.108
EditLogPort: 9010
HttpPort: 8030
QueryPort: 9030
RpcPort: 9021
Role: FOLLOWER
ClusterId: 503331877
Join: true
Alive: true
ReplayedJournalId: 1477600
LastHeartbeat: 2023-11-30 17:13:19
IsHelper: true
ErrMsg:
StartTime: 2023-11-30 16:10:54
Version: 3.1.2-4f3a2ee
*************************** 4. row ***************************
Name: 192.168.8.104_19010_1701333098132
IP: 192.168.8.104
EditLogPort: 19010
HttpPort: 8030
QueryPort: 0
RpcPort: 0
Role: FOLLOWER
ClusterId: 503331877
Join: false
Alive: false
ReplayedJournalId: 0
LastHeartbeat: NULL
IsHelper: true
ErrMsg:
StartTime: NULL
Version: NULL
@jingdan @dongquan @lvlouisaslia @Doni 技术老师们,这个问题帮忙看一下,在线急等,谢谢