Skip to content

[dev branch] Use docker-compose for deployment . Failed to execute python script(使用docker-compose部署,执行python脚本错误,所使用的docker-compose文件在swarm目录下) #2533

@gumupaier

Description

@gumupaier

*For better global communication, please give priority to using English description, thx! *

Describe the bug
start command:
docker-compose up -d

description:

Failed to execute python script

the log show

sudo: /opt/soft/python: command not found

However, I have changed the dolphinscheduler_env.sh file

export HADOOP_HOME=/opt/soft/hadoop export HADOOP_CONF_DIR=/opt/soft/hadoop/etc/hadoop export SPARK_HOME1=/opt/soft/spark1 export SPARK_HOME2=/opt/soft/spark2 export PYTHON_HOME=/usr/bin/python export JAVA_HOME=/opt/soft/java export HIVE_HOME=/opt/soft/hive export FLINK_HOME=/opt/soft/flink export PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$PATH

Screenshots*
image

**Requirement or improvement
Even better, the built-in python version of the container is python3

Hard you

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions