Skip to content

Commit b6dcaf7

Browse files
committed
fix_parse_config_file
1 parent a24b509 commit b6dcaf7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docker/runtime/fe/resource/fe_disaggregated_entrypoint.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ DB_ADMIN_PASSWD=$PASSWD
5353
# myself as IP or FQDN
5454
MYSELF=
5555

56+
# doris mtat storage path
57+
DORIS_META_DIR=
58+
5659
#specify enable tls or not.
5760
ENABLE_TLS=
5861

59-
#tls_certificate_path specify the path of public crt.
62+
#tls_certificate_path specify the path of public crt.
6063
TLS_CERTIFICATE_PATH=
6164

6265
#tls_private_key_path specify the public secert key.
@@ -121,6 +124,13 @@ collect_env_info()
121124
if [[ "x$query_port" != "x" ]] ; then
122125
QUERY_PORT=$query_port
123126
fi
127+
128+
# parse meta_dir
129+
local doris_meta_path=`parse_confval_from_fe_conf "meta_dir"`
130+
if [[ "x$doris_meta_path" == "x" ]] ; then
131+
doris_meta_path="/opt/apache-doris/fe/doris-meta"
132+
fi
133+
DORIS_META_DIR=$doris_meta_path
124134
}
125135

126136
show_frontends()
@@ -504,13 +514,14 @@ resolve_password_from_secret
504514
#parse tls connection config
505515
parse_tls_connection_variables
506516

507-
if [[ -f "$DORIS_HOME/doris-meta/image/ROLE" ]]; then
517+
collect_env_info
518+
doris_meta_dir=$(eval "echo \"$DORIS_META_DIR\"")
519+
if [[ -f "$doris_meta_dir/image/ROLE" ]]; then
508520
log_stderr "start fe with exist meta."
509521
./doris-debug --component fe
510522
start_fe_with_meta
511523
else
512524
log_stderr "first start fe with meta not exist."
513-
collect_env_info
514525
probe_master $fe_addrs
515526
#create account about node management
516527
create_account

0 commit comments

Comments
 (0)