在容器环境中部署Manager初始化失败

Viewed 106

尝试在Podman的容器环境中部署Manager,在初始化时遇到下面的错误:

time="2024-04-02T07:05:57Z" level=info msg="ready to deduct all config of doris manager"
time="2024-04-02T07:05:57Z" level=info msg="deduct all config of doris manager..."
time="2024-04-02T07:05:57Z" level=info msg="[manager] version = 24.0.0"
time="2024-04-02T07:05:57Z" level=info msg="[webserver] host = 127.0.0.1"
time="2024-04-02T07:05:57Z" level=info msg="[webserver] deploy_dir = /opt/doris-manager-24.0.0-x64-bin/webserver"
time="2024-04-02T07:05:57Z" level=info msg="[path] doris path = /opt/downloads/doris"
time="2024-04-02T07:05:57Z" level=info msg="[path] doris_manager path = /opt/downloads/doris_manager"
time="2024-04-02T07:05:57Z" level=info msg="deduct all config of doris manager done"
time="2024-04-02T07:05:57Z" level=info msg="prepare package dir shell: "
time="2024-04-02T07:05:57Z" level=info msg="
set -ex

DEPLOY_DIR=\"/opt/doris-manager-24.0.0-x64-bin\"
DORIS_PATH=\"/opt/downloads/doris\"
JAVA8_TAR_NAME=\"java8.tar.gz\"

if [[ ! -d ${DORIS_PATH}/java8 ]]; then
\tmkdir -p ${DORIS_PATH}/java8
fi

if [ ! -z \"$(ls -A ${DORIS_PATH}/java8)\" ]; then
\t\\mv -f ${DORIS_PATH}/java8 ${DORIS_PATH}/java8_outdate_$(date '+%Y-%m-%dT%H:%M:%S+0800')
\tmkdir -p ${DORIS_PATH}/java8
fi

yes | \\cp -rf ${DEPLOY_DIR}/deps/jdk/* ${DORIS_PATH}/java8/

# compress java8.tar.gz
cd ${DORIS_PATH}
tar -zcvf ${JAVA8_TAR_NAME} java8
"
time="2024-04-02T07:05:57Z" level=error msg="deploy failed: prepare package fail: err = exec: no command, output = "
time="2024-04-02T07:05:57Z" level=info msg="deploy done"
time="2024-04-02T07:05:57Z" level=info msg="deploy operation end, ready to close all resources, jobId = [ee325510439f406bb95af5707a943ae5]"
time="2024-04-02T07:05:57Z" level=info msg="ready to finish current job, jobId = [ee325510439f406bb95af5707a943ae5]"
time="2024-04-02T07:05:57Z" level=warning msg="job failed, err = prepare package fail: err = exec: no command, output = "
time="2024-04-02T07:05:57Z" level=info msg="ready to rollback started process..."

prepare package fail: err = exec: no command, output = 
[ERROR]

然后尝试把上面的执行脚本写到环境中,是可以正常执行的:

执行初始化脚本

当前系统用的容器镜像操作系统为:Ubuntu 22.04.4 LTS

1 Answers

产品层面上目前还不支持Manager容器化部署的排期;可持续关注发版特性。