下载部署包 https://doris.apache.org/download
官网的二进制包集成打包了fe、be、broker,下载后需解压并重新分开打包为
tar -cf be-2.0.4.tar.gz d:\be\*
tar -cf broker-2.0.4.tar.gz d:\extensions\*
tar -cf fe-2.0.4.tar.gz d:\fe\*
构建镜像
git clone https://github.com/jingtingzhiwu/doris-docker-compose
docker build 时debian的镜像太慢,替换为阿里云
构建结果
启动部署
docker run -itd
--name=fe
--env FE_SERVERS="fe1:192.168.4.170:9010"
--env FE_ID=1
-p 8030:8030
-p 9030:9030
-v /data/fe/doris-meta:/opt/apache-doris/fe/doris-meta
-v /data/fe/log:/opt/apache-doris/fe/log
--net=host --privileged=true
wilkey:doris-2.0.4-fe
docker run -itd
--name=be
--env FE_SERVERS="fe1:192.168.4.170:9010"
--env BE_ADDR="192.168.4.170:9050"
-p 8040:8040
-v /data/be/storage:/opt/apache-doris/be/storage
-v /data/be/log:/opt/apache-doris/be/log
--net=host --privileged=true
wilkey:doris-2.0.4-be
修改be配置
docker logs -f be
查看fe的网段配置priority_networks,并复制出来 (priority_networks = 192.168.4.0/24)
apt-get install vim
vi /opt/apache-doris/be/conf/be.conf
priority_networks = 192.168.4.0/24
启动be
be是需要进入容器启动的,fe是随容器启动的
docker exec -it be /bin/bash
ps -ef|grep be
/opt/apache-doris/be/bin/start_be.sh --daemon
注册be
通过mysql.exe或其它工具连接fe
mysql -h 192.168.4.170 -P9030 -uroot
alter system add backend '192.168.4.170:9050';
show proc '/backends';
Comments | NOTHING