当前位置:网站首页>05 Doris cluster construction
05 Doris cluster construction
2022-08-01 16:33:00 【Blue wind 9】
Ha ha recently there are a series of related requirements for environment construction
Record it
doris three nodes: 192.168.110.150, 192.168.110.151, 192.168.110.152
150 is fe & be, 151 is be, 152 is be
Three machines have done trusted shell
Doris cluster setup
doris three nodes: 192.168.110.150, 192.168.110.151, 192.168.110.152
1. Basic environment preparation
192.168.110.150, 192.168.110.151, 192.168.110.152 install jdk on it, upload the doris installation package
The installation package is from Downloads | Apache Doris
Here doris 1.0.0 has a compiled installation package to download
Other versions need to be compiled manually, which is more troublesome, you can refer to Compilation | Apache Doris
2. doris configuration adjustment
Update fe/conf/fe.conf, be/conf/be.conf configuration files, update priority_networks
Then copy binary to slave01, slave02
priority_networks = 192.168.110.150/24;127.0.0.1/243. Start the cluster
Start fe, be on master respectively
Start be node on slave01, slave02
Then the be node will be in a state of waiting to interact with the fe node at this time
Then enter the fe service and join the backend nodes of master, slave01, slave02
[email protected]:~# mysql -h master -P 9030 -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 0Server version: 5.1.0 Doris version 1.0.0-rc03-UnknownCopyright (c) 2000, 2021, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> ALTER SYSTEM ADD BACKEND "master:9050";Query OK, 0 rows affected (0.03 sec)mysql> ALTER SYSTEM ADD BACKEND "slave01:9050";Query OK, 0 rows affected (0.08 sec)mysql> ALTER SYSTEM ADD BACKEND "slave02:9050";Query OK, 0 rows affected (0.02 sec)4. Test the cluster
Enter fe's management interface, view backends

Create test library table
CREATE DATABASE testDb;CREATE TABLE testDb.testTable(k1 bigint,k2 varchar(100),v varchar(100) REPLACE) DISTRIBUTED BY HASH(k1) BUCKETS 8;Import data via web interface

Do some simple queries

End
边栏推荐
猜你喜欢

网站备案后没有找到站点 您没有将此域名或IP绑定到对应站点! 配置文件未生效!

ESP8266-Arduino编程实例-MLX90614红外测温传感器驱动

提速!进口婴幼儿配方产品出证仅需1-3天

短剧正在抢长剧的生意

HashCode technology insider interview must ask

Using Canvas to achieve web page mouse signature effect

shell 基础之函数编写

MUI 做手机返回操作栏

Shell basic function writing

便携烙铁开源系统IronOS,支持多款便携DC, QC, PD供电烙铁,支持所有智能烙铁标准功能
随机推荐
Eslint syntax error is solved
pytorch测试的时候为何要加上model.eval()?
【repo】SyntaxError: invalid syntax
27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法!
聊下自己转型测试开发的历程
如何防止重复下单?
"Find nearby shops" | Geohash+MySQL realizes geographic location filtering
DOM series of touch screen events
mysql源码分析——聚簇索引
七夕到了——属于程序员的浪漫
DOM系列之classList属性
Path helper class for C#
【Unity,C#】哨兵射线触发器模板代码
MUI as a mobile phone to return to the action bar
MySQL查询上的问题
pytorch中tensor转成图片保存
清华教授发文劝退读博:我见过太多博士生精神崩溃、心态失衡、身体垮掉、一事无成!...
C#的DataTable帮助类
计算机系统与网络安全技术——第一章——信息安全概述——1.1-网络安全定义——什么是信息?
提速!进口婴幼儿配方产品出证仅需1-3天