starrocks集群部署

一.下载安装包

二.配置Java环境变量

三.安装详解

机器名称

FE角色

BE角色

LFIDC-A05-BData-node01

IsMaster: true

true

LFIDC-A05-BData-node02

Role: FOLLOWER

IsMaster: false

true

LFIDC-A05-BData-node03

Role: FOLLOWER

IsMaster: true

true

1.创建目录

mkdir -p /data/deploy/StarRocks-2.2.2/fe/meta

mkdir -p /data/deploy/StarRocks-2.2.2/be/storage

2.修改be存储目录

 starrocks集群部署_第1张图片

四.FE部署

 1.在LFIDC-A05-BData-node01操作(FE)

/data/deploy/StarRocks-2.2.2/fe/bin/start_fe.sh --daemon

服务验证

mysql -uroot -h172.x.x.1 -P 9030

增加follower

alter system add follower "172.x.x.2:9010";

alter system add follower "172.x.x.3:9010";

2.在LFIDC-A05-BData-node02操作(FE)

/data/deploy/StarRocks-2.2.2/fe/bin/start_fe.sh --helper 172.x.x.1:9010 --daemon 

3.在LFIDC-A05-BData-node03操作(FE)

/data/deploy/StarRocks-2.2.2/fe/bin/start_fe.sh --helper 172.x.x.1:9010 --daemon 

 五.BE部署

1.在LFIDC-A05-BData-node01操作(FE)

mysql -uroot -h172.x.x.1 -P 9030

MySQL [(none)]> ALTER SYSTEM ADD BACKEND "172.x.x.1:9050"

MySQL [(none)]> ALTER SYSTEM ADD BACKEND "172.x.x.2:9050"

MySQL [(none)]> ALTER SYSTEM ADD BACKEND "172.x.x.3:9050"

2.启动Starrock

启动LFIDC-A05-BData-node01

/data/deploy/StarRocks-2.2.2/be/bin/start_be.sh --daemon

启动LFIDC-A05-BData-node02

/data/deploy/StarRocks-2.2.2/be/bin/start_be.sh --daemon

启动LFIDC-A05-BData-node03

/data/deploy/StarRocks-2.2.2/be/bin/start_be.sh --daemon

六.Broker部署

1.mysql客户端添加节点

ALTER SYSTEM ADD BROKER broker1 "172.x.x.1:8000";

ALTER SYSTEM ADD BROKER broker2 "172.x.x.2:8000";

ALTER SYSTEM ADD BROKER broker3 "172.x.x.3:8000";

2.每个节点都要启动

[root@LFIDC-A05-BData-node01 bin]# /data/deploy/StarRocks-2.2.2/apache_hdfs_broker/bin/start_broker.sh --daemon

[root@LFIDC-A05-BData-node02 bin]# /data/deploy/StarRocks-2.2.2/apache_hdfs_broker/bin/start_broker.sh --daemon

[root@LFIDC-A05-BData-node03 bin]# /data/deploy/StarRocks-2.2.2/apache_hdfs_broker/bin/start_broker.sh --daemon

  七.查看服务 

FE

starrocks集群部署_第2张图片

 BE:

starrocks集群部署_第3张图片

 Broker:

starrocks集群部署_第4张图片

你可能感兴趣的:(starrocks,大数据)