You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by zhugang_etin <zh...@qq.com.INVALID> on 2023/06/13 09:12:33 UTC

Doris docker部署问题反馈

你好!




最近在使用:
apache/doris:1.2.1-fe-x86_64

apache/doris:1.2.1-be-x86_64



来安装部署Doris,发现的问题如下:
按照官网配置样例进行配置,我这边使用的操作系统是ubuntu20.04,docker版本是Docker version 20.10.7, build f0df350,docker-compose版本是Docker Compose version v2.2.2。
首次通过 up -d 命令启动正常,创建库、创建表、导入数据、查询等都正常,但是添加root/admin密码后重启docker服务(be或fe)后,fe日志报连接不上be,be日志报没有启动的fe。
经过排查原因在docker启动服务的初始化脚本,发现是脚本中获取元数据信息失败(因为配置了密码)导致的,具体复现步骤为:
1.拉取docker镜像&nbsp;apache/doris:1.2.1-fe-x86_64及apache/doris:1.2.1-be-x86_64

2.配置docker yml文件(复制官网配置)
3.启动Doris服务
4.通过mysql-client连接添加root/admin密码
5.创建数据库及表并导入数据。(此步骤可以忽略)
6.重启Doris服务。(docker-compose -p root -f /docker/config/config.yml&nbsp; restart)






Hello!

 

Recently in use:

Apache/Doris: 1.2.1 - fe - x86_64 

Apache/Doris: 1.2.1 - be - x86_64 

 

To install and deploy Doris, the following problems were found: 

According to the configuration example on the official website, the operating system I used is ubuntu20.04, the docker version is Docker version 20.10.7, build f0df350, and the Docker version is Docker version 20.10.7. Docker-compose version is Docker Compose version v2.2.2. 

When you run the up -d command for the first time, the database creation, table creation, data import, and query are all normal. However, after the root/admin password is added and the docker service (be or fe) is restarted, the fe log message cannot connect to be, and the be log message does not have the fe started. 

After checking the cause, in the initialization script of docker starting the service, it is found that the metadata information fails to be obtained in the script (because the password is configured). The specific steps are as follows: 

1. Pull docker images apache/doris:1.2.1-fe-x86_64 and apache/doris:1.2.1-be-x86_64 

2. Configure the docker yml file (copy the configuration on the official website) 

3. Start the Doris service 

4. Use the mysql-client connection to add the root/admin password 

5. Create databases and tables and import data. (This step can be ignored) 

6. Restart the Doris service. (docker - compose - root - f/p docker/config/config. Yml restart)





The configuration is based on the configuration file sample on the official website, as follows:

基本按照官网的配置文件样例进行配置,具体如下:
version: '3'services:
&nbsp; docker-fe:
&nbsp; &nbsp; image: "apache/doris:1.2.1-fe-x86_64"
&nbsp; &nbsp; container_name: "doris-fe"
&nbsp; &nbsp; hostname: "fe"
&nbsp; &nbsp; restart: always
&nbsp; &nbsp; environment:
&nbsp; &nbsp; &nbsp; - FE_SERVERS=fe1:172.20.80.2:9010
&nbsp; &nbsp; &nbsp; - FE_ID=1
&nbsp; &nbsp; ports:
&nbsp; &nbsp; &nbsp; - 8030:8030
&nbsp; &nbsp; &nbsp; - 9030:9030
&nbsp; &nbsp; volumes:
&nbsp; &nbsp; &nbsp; - /data/v2/fe/doris-meta:/opt/apache-doris/fe/doris-meta
&nbsp; &nbsp; &nbsp; - /data/v2/fe/conf:/opt/apache-doris/fe/conf
&nbsp; &nbsp; &nbsp; - /data/v2/fe/log:/opt/apache-doris/fe/log
&nbsp; &nbsp; &nbsp; - /etc/localtime:/etc/localtime:ro
&nbsp; &nbsp; networks:
&nbsp; &nbsp; &nbsp; doris_net:
&nbsp; &nbsp; &nbsp; &nbsp; ipv4_address: 172.20.80.2
&nbsp; &nbsp; logging:
&nbsp; &nbsp; &nbsp; options:
&nbsp; &nbsp; &nbsp; &nbsp; max-size: "50M"
&nbsp; &nbsp; &nbsp; &nbsp; max-file: "10"
&nbsp; &nbsp; &nbsp; driver: json-file
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; docker-be:
&nbsp; &nbsp; image: "apache/doris:1.2.1-be-x86_64"
&nbsp; &nbsp; container_name: "doris-be"
&nbsp; &nbsp; hostname: "be"
&nbsp; &nbsp; restart: always
&nbsp; &nbsp; depends_on:
&nbsp; &nbsp; &nbsp; - docker-fe
&nbsp; &nbsp; environment:
&nbsp; &nbsp; &nbsp; - FE_SERVERS=fe1:172.20.80.2:9010
&nbsp; &nbsp; &nbsp; - BE_ADDR=172.20.80.3:9050
&nbsp; &nbsp; ports:
&nbsp; &nbsp; &nbsp; - 8040:8040
&nbsp; &nbsp; volumes:
&nbsp; &nbsp; &nbsp; - /data/v2/be/storage:/opt/apache-doris/be/storage
&nbsp; &nbsp; &nbsp; - /data/v2/be/conf:/opt/apache-doris/be/conf
&nbsp; &nbsp; &nbsp; - /data/v2/be/script:/docker-entrypoint-initdb.d
&nbsp; &nbsp; &nbsp; - /data/v2/be/log:/opt/apache-doris/be/log
&nbsp; &nbsp; &nbsp; - /etc/localtime:/etc/localtime:ro
&nbsp; &nbsp; networks:
&nbsp; &nbsp; &nbsp; doris_net:
&nbsp; &nbsp; &nbsp; &nbsp; ipv4_address: 172.20.80.3
&nbsp; &nbsp; logging:
&nbsp; &nbsp; &nbsp; options:
&nbsp; &nbsp; &nbsp; &nbsp; max-size: "50M"
&nbsp; &nbsp; &nbsp; &nbsp; max-file: "10"
&nbsp; &nbsp; &nbsp; driver: json-file


networks:
&nbsp; doris_net:
&nbsp; &nbsp; ipam:
&nbsp; &nbsp; &nbsp; config:
&nbsp; &nbsp; &nbsp; &nbsp; - subnet: 172.20.80.0/16