当前位置:网站首页>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 界面导入数据

做一些简单的查询

完
边栏推荐
- The untiy Resources directory dynamically loads resources
- LeetCode50天刷题计划(Day 6—— 整数反转 14.20-15.20)
- LeetCode50天刷题计划(Day 7—— 字符串转换整数 (atoi) 12.20-15.20)
- js to determine whether it is a pc or a mobile terminal (including ipad)
- 到底什么才是真正的商业智能(BI)
- LeetCode50天刷题计划(Day 8—— 盛最多水的容器(23.00-1.20)
- 沈腾拯救暑期档
- 便携烙铁开源系统IronOS,支持多款便携DC, QC, PD供电烙铁,支持所有智能烙铁标准功能
- 商业智能BI业务分析思维:供应链分析 - 什么是牛鞭效应(一)
- 兆骑科创科创赛事平台,创业赛事活动路演,线上直播路演
猜你喜欢

Shell basic function writing

指针进阶(二)

pynlpir更新license Error: unable to fetch newest license解决方案

IronOS, an open source system for portable soldering irons, supports a variety of portable DC, QC, PD powered soldering irons, and supports all standard functions of smart soldering irons

月薪12K,蝶变向新勇往直前,我通过转行软件测试实现月薪翻倍...

【Unity,C#】哨兵点位循迹模板代码

"Find nearby shops" | Geohash+MySQL realizes geographic location filtering

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

27英寸横置大屏+实体按键,全新探险者才是安全而合理的做法!

2022年7月最热的10篇AI论文
随机推荐
高薪程序员&面试题精讲系列131之Eureka如何实现高可用?自我保护机制是怎么回事?
每日优鲜大败局
请问下怎么取数据库中上一个小时的数据到odps进行实时节点的同步呢
使用Canvas 实现手机端签名
canvas粒子雨动画js特效
设计专业第一台笔记本 华硕灵耀Pro16 2022 新品首发超值入手
未来小间距竞争的着力点在哪里
中国驻西班牙使馆再次提醒留学人员注意暑期安全
ESP8266-Arduino programming example-GA1A12S202 logarithmic scale analog light sensor
2.8K 120Hz touch dual-screen blessing Lingyao X dual-screen Pro 2022 makes the office without fear of imagination
“查找附近的商铺”|Geohash+MySQL实现地理位置筛选
直播app开发,是优化直播体验不得不关注的两大指标
IronOS, an open source system for portable soldering irons, supports a variety of portable DC, QC, PD powered soldering irons, and supports all standard functions of smart soldering irons
MUI 做手机返回操作栏
探讨if...else的替代方案
1 缺陷规范
80篇国产数据库实操文档汇总(含TiDB、达梦、openGauss等)
Go unit tests
mysql源码分析——聚簇索引
兆骑科创科创赛事平台,创业赛事活动路演,线上直播路演