You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2021/12/02 13:46:49 UTC
[GitHub] [incubator-linkis] legendtkl opened a new issue #1146: [Bug] hard code JAVA_HOME
legendtkl opened a new issue #1146:
URL: https://github.com/apache/incubator-linkis/issues/1146
**Describe the bug**
Now env JAVA_HOME path is hard code in shell scripts: `linkis-cli` and `linkis-cli` as follow:
```shell
local JAVA8_HOME_CANDIDATES='\
/usr/java/jdk1.8* \
/nemo/jdk1.8*'
JAVA_HOME_CANDIDATES="$JAVA8_HOME_CANDIDATES"
# attempt to find java 8
flag=""
for candidate_regex in $JAVA_HOME_CANDIDATES ; do
for candidate in `ls -rd $candidate_regex 2>/dev/null`; do
if [ -e $candidate/bin/java ]; then
export JAVA_HOME=$candidate
flag="true"
break 2
fi
done
done
```
It's better to check the ENV JAVA_HOME firstly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org
[GitHub] [incubator-linkis] peacewong closed issue #1146: [Bug] hard code JAVA_HOME
Posted by GitBox <gi...@apache.org>.
peacewong closed issue #1146:
URL: https://github.com/apache/incubator-linkis/issues/1146
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org