1987gaolipeng opened a new issue, #30587:
URL: https://github.com/apache/doris/issues/30587

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.3
   
   ### What's Wrong?
   
   # 环境
   ## 构建
   根据官网的构建说明,进行构建
   ```bash
   # 选择基础镜像
   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地址
   
   ```bash
   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
   ```
   
   # 现象
   启动失败
   ```bash
   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" 
   
   2. 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" 
   
   3. 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
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to