guopengfa
发布于 2024-03-22 / 161 阅读 / 0 评论 / 0 点赞

doris安装踩坑

记录docker-compose安装doris2.0的坑

docker-compose.yaml

version: "3"
services:
  fe:
    image: apache/doris:2.0.0_alpha-fe-x86_64
    hostname: fe
    environment:
     - FE_SERVERS=fe1:${当前机器的内网IP}:9010
     - FE_ID=1
    volumes:
     - /data/fe/doris-meta/:/opt/apache-doris/fe/doris-meta/
     - /data/fe/log/:/opt/apache-doris/fe/log/
    network_mode: host
  be:
    image: apache/doris:2.0.0_alpha-be-x86_64
    hostname: be
    environment:
     - FE_SERVERS=fe1:${当前机器的内网IP}:9010
     - BE_ADDR=${当前机器的内网IP}:9050
    volumes:
     - /data/be/storage/:/opt/apache-doris/be/storage/
     - /data/be/script/:/docker-entrypoint-initdb.d/
    depends_on:
      - fe
    network_mode: host

遇到问题

修改密码后重启doris无法查询数据

解决办法

  1. 设置密码需要在容器内使用: set password for 'root' = password('your password')

  2. 容器内/usr/local/bin中的entry_point.sh和init_be.sh脚本中,使用MySQL命令部分,加上-p[新密码]

  3. 至此已经解决,此应该为doris的一个bug


评论