doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] 2.0.3版本 1FE & 1BE docker搭建,be启动失败

Open 1987gaolipeng opened this issue 1 year ago • 5 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

2.0.3

What's Wrong?

环境

构建

根据官网的构建说明,进行构建

# 选择基础镜像
FROM openjdk:8u342-jdk

# 设置环境变量
ENV JAVA_HOME="/usr/local/openjdk-8/" \
    PATH="/opt/apache-doris/be/bin:$PATH"

# 下载软件至镜像内,可根据需要替换
ADD ./resource/be.tar.gz /opt/

RUN apt-get update && \
    apt-get install -y default-mysql-client && \
    apt-get clean && \
    mkdir /opt/apache-doris && \
    cd /opt && \
    mv be /opt/apache-doris/be

ADD ./resource/init_be.sh /opt/apache-doris/be/bin
RUN chmod 755 /opt/apache-doris/be/bin/init_be.sh

ENTRYPOINT ["/opt/apache-doris/be/bin/init_be.sh"]

init_be.sh 地址

https://github.com/apache/doris/blob/release-2.0.3/docker/runtime/be/resource/init_be.sh

部署

进行单设备1fe1be部署,其中172.22.57.73是宿主机的ip地址

docker run -itd \
--name=be \
--env FE_SERVERS="fe1:172.22.57.73:9010" \
--env BE_ADDR="172.22.57.73:9050" \
-p 8040:8040 \
-v /var/lib/docker/data/be/storage:/opt/apache-doris/be/storage \
-v /var/lib/docker/data/be/log:/opt/apache-doris/be/log \
--net=host \
apache-doris:2.0.3-be

现象

启动失败

root@k8s-master-73:~# docker logs -f be
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: add priority_networks  to /opt/apache-doris/be/conf/be.conf
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: this node role is mix
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: ============= init args ================
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: MASTER_FE_IP 
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: CURRENT_BE_IP 
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: CURRENT_BE_PORT 
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: RUN_TYPE 
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: PRIORITY_NETWORKS 
2024-01-30T08:29:39+00:00 [Warn] [Entrypoint]: start check be register status~
2024-01-30T08:29:39+00:00 [Note] [Entrypoint]: register is failed, wait next~
2024-01-30T08:29:59+00:00 [Warn] [Entrypoint]: start check be register status~
2024-01-30T08:29:59+00:00 [Note] [Entrypoint]: register is failed, wait next~
后续一直循环

问题

问题1 官网部署的环境变量是否有误

  1. FE_SERVERS BE_ADDR 并未在init_be.sh 中找到,导致show_be_args 打印环境变量的时候都是空?

--env FE_SERVERS="fe1:172.22.57.73:9010"
是不是应该换成 --env MASTER_FE_IP="72.22.57.73"

  1. BE_ADDR也为找到未在init_be.sh找到

--env BE_ADDR="172.22.57.73:9050" 是否替换成 --env CURRENT_BE_IP="72.22.57.73" --env CURRENT_BE_PORT="9050"

  1. PRIORITY_NETWORKS 没有配置的的情况会导致 be.conf 中的 priority_networks参数缺失 是不是也该补上

What You Expected?

在部署fe的时候并未有上述问题,建议把init_fe.sh的代码迁移过来,或者更改doc文档

How to Reproduce?

根据上述描述即可重现,请现在2.0.3的二进制安装包进行构建

Anything Else?

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

1987gaolipeng avatar Jan 30 '24 10:01 1987gaolipeng

+1

moonshineyou avatar Feb 01 '24 07:02 moonshineyou

+1

mfanoffice avatar Mar 05 '24 03:03 mfanoffice

+1 这个问题至今仍然存在

hcl666 avatar Apr 13 '24 02:04 hcl666

+1

lhsaq2009 avatar May 04 '24 08:05 lhsaq2009

+1 太难受了简直!

OnesZhang avatar May 24 '24 06:05 OnesZhang

+1 期待尽快解决呀

forka-zmodan avatar Jun 13 '24 06:06 forka-zmodan

Dear Users,

I sincerely apologize for the inconvenience caused by the recent issue. Due to work commitments, I was unable to address this bug promptly. However, I am pleased to inform you that the bug has now been fixed. The relevant PR is #37335.

Thank you for your understanding and continued support. If you encounter any further issues, please feel free to contact me directly via WeChat: fl_manyi.

Best regards,
Freeoneplus

FreeOnePlus avatar Jul 05 '24 04:07 FreeOnePlus