一.下载安装包
略
二.配置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存储目录
四.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
BE:
Broker:文章来源:https://www.toymoban.com/news/detail-469938.html
文章来源地址https://www.toymoban.com/news/detail-469938.html
到了这里,关于starrocks集群部署的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!