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可直接复用。