Skip to content

Esceduler-daemon.sh does not recognize JAVA_HOME and causes installation to fail( escheduler-daemon.sh无法识别JAVA_HOME导致安装失败) #119

@xiaohei-info

Description

@xiaohei-info

Error message:

Cat escheduler-api-server-host1.out
Nohup: Unable to run command "/bin/java": no such file or directory

JAVA_HOME is available in the shell environment.

Echo $JAVA_HOME
/usr/java/jdk1.8.0

Temporary solution:
** In the file escheduler-daemon.sh write dead export JAVA_HOME=xxx**

I hope to have a more elegant way to solve this problem, such as:
The **.escheduler_env.sh file has been manually specified with environment variable information, and escheduler-daemon.sh can be reused directly. **


错误信息:

cat escheduler-api-server-host1.out
nohup: 无法运行命令"/bin/java": 没有那个文件或目录

JAVA_HOME在shell环境中可以获取到。

echo $JAVA_HOME
/usr/java/jdk1.8.0

临时解决方案:
在文件 escheduler-daemon.sh 写死export JAVA_HOME=xxx

期望能有个比较优雅的方式解决这个问题,比如:
.escheduler_env.sh文件已手动指定环境变量信息,escheduler-daemon.sh可直接复用。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions