当前位置:网站首页>05 doris 集群搭建
05 doris 集群搭建
2022-08-01 16:20:00 【蓝风9】
呵呵 最近有一系列环境搭建的相关需求
记录一下
doris 三个节点 : 192.168.110.150, 192.168.110.151, 192.168.110.152
150 为 fe & be, 151 为 be, 152 为 be
三台机器都做了 trusted shell
doris 集群搭建
doris 三个节点 : 192.168.110.150, 192.168.110.151, 192.168.110.152
1. 基础环境准备
192.168.110.150, 192.168.110.151, 192.168.110.152 上面安装 jdk, 上传 doris 的安装包
安装包来自于 Downloads | Apache Doris
这里 doris 1.0.0 有编译好的安装包下载
其他版本需要手动编译, 比较麻烦, 可以参考 Compilation | Apache Doris
2. doris 配置调整
更新 fe/conf/fe.conf, be/conf/be.conf 的配置文件, 更新 priority_networks
然后将 binary 拷贝到 slave01, slave02
priority_networks = 192.168.110.150/24;127.0.0.1/243. 启动集群
在 master 上面分别启动 fe, be
在 slave01, slave02 上面启动 be 节点
然后 此时 be 节点会处于等待 和 fe 节点交互的状态
然后进入 fe 的服务, 加入 master, slave01, slave02 的 backend 的节点
[email protected]:~# mysql -h master -P 9030 -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 0
Server version: 5.1.0 Doris version 1.0.0-rc03-Unknown
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
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. 测试集群
进入 fe 的管理界面, 查看 backends

创建测试库表
CREATE DATABASE testDb;
CREATE TABLE testDb.testTable
(
k1 bigint,
k2 varchar(100),
v varchar(100) REPLACE
) DISTRIBUTED BY HASH(k1) BUCKETS 8;
通过 web 界面导入数据

做一些简单的查询

完
边栏推荐
猜你喜欢
随机推荐
shell 基础之函数编写
比对软件-blastN结果详解
Vulnhub靶机:HARRYPOTTER_ NAGINI
ESP8266-Arduino编程实例-MLX90614红外测温传感器驱动
【Unity,C#】哨兵射线触发器模板代码
怎么安装汉化包(svn中文语言包安装)
商业智能BI业务分析思维:供应链分析 - 什么是牛鞭效应(一)
使用Canvas 实现手机端签名
指针进阶(二)
如何有效地开发 Jmix 扩展组件
Go unit tests
LeetCode50天刷题计划(Day 8—— 盛最多水的容器(23.00-1.20)
七夕专属博文-使用QGraphics画“红心“或“黑心“(含数学模型讲解)
【黑马早报】胡军代言悟空理财涉嫌欺诈,疑似涉及390亿元;涪陵榨菜回应榨菜吃出脚指甲; 鸿星尔克再捐1个亿;腾讯控股股价跌回5年前...
"Find nearby shops" | Geohash+MySQL realizes geographic location filtering
如何有效地开发 Jmix 扩展组件
全新升级!《云原生架构白皮书 2022 版》重磅发布
清华教授发文劝退读博:我见过太多博士生精神崩溃、心态失衡、身体垮掉、一事无成!...
8年软件测试工程师感悟 —— 写给还在迷茫中的朋友
指针进阶(三)之指针与数组笔试题








