龙蜥操作系统安装doris集群(arrch64架构)
Doris 作为一款开源的 MPP 架构 OLAP 数据库,能够运行在绝大多数主流的商用服务器上。为了能够充分运用 MPP 架构的并发优势,以及 Doris 的高可用特性,我们建议 Doris 的部署遵循以下需求:
-
Linux 操作系统版本需求
Linux系统 版本 Centos 7.1及以上 Ubuntu 16.04及以上 -
软件需求
软件 版本 Java 1.8及以上 GCC 7.3及以上 -
l网络需求
Doris 各个实例直接通过网络进行通讯。以下表格展示了所有需要的端口
-
资源规划
node1 node2 node3 FE(Leader) FE(Follower) FE(Follower) BE BE BE BROKER BROKER BROKER 注意:
因测试环境资源有限,FE和BE节点部署在相同服务器,生产环境建议分开
环境准备
-
修改三台主机名称为 node1、node2、node3
vim /etc/hostname node1 # 按esc 输入:eq 保存退出
-
配置三台主机hosts
node1
vim /etc/hosts # Loopback entries; do not change. # For historical reasons, localhost precedes localhost.localdomain: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 node1 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 node1 # See hosts(5) for proper format and other examples: # 192.168.1.10 foo.mydomain.org foo # 192.168.1.13 bar.mydomain.org bar 10.211.55.13 node1 10.211.55.14 node2 10.211.55.15 node3 # 按esc 输入:eq 保存退出
node2
vim /etc/hosts # Loopback entries; do not change. # For historical reasons, localhost precedes localhost.localdomain: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 node3 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 node3 # See hosts(5) for proper format and other examples: # 192.168.1.10 foo.mydomain.org foo # 192.168.1.13 bar.mydomain.org bar 10.211.55.13 node1 10.211.55.14 node2 10.211.55.15 node3 # 按esc 输入:eq 保存退出
node3
vim /etc/hosts # Loopback entries; do not change. # For historical reasons, localhost precedes localhost.localdomain: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 node3 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 node3 # See hosts(5) for proper format and other examples: # 192.168.1.10 foo.mydomain.org foo # 192.168.1.13 bar.mydomain.org bar 10.211.55.13 node1 10.211.55.14 node2 10.211.55.15 node3