[
https://issues.apache.org/jira/browse/GEARPUMP-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198011#comment-16198011
]
Huafeng Wang commented on GEARPUMP-353:
---------------------------------------
If you installed java in your custom directory and didn't set JAVA_HOME
correctly, the script has no idea where the java is installed. It will attempt
to use {{which}} command to locate java. According to your output, it seems
java is not installed to your user's path, so the {{which}} command cannot find
it either. I recommend setting JAVA_HOME in your environment to let the script
locate java correctly.
> Start cluster can not work when install Java in custom directory
> ----------------------------------------------------------------
>
> Key: GEARPUMP-353
> URL: https://issues.apache.org/jira/browse/GEARPUMP-353
> Project: Apache Gearpump
> Issue Type: Bug
> Reporter: Xuetong Zhu
>
> When I installed java in my custom directory by "jdk-8u121-linux-x64.tar.gz"
> file, java -verion command is right to perform, then executed
> start-cluster.sh command,I got some error like this:
> "which: no javac in
> (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
> which: no java in
> (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
> Error: JAVA_HOME is not defined correctly.
> We cannot execute "
> I had already installed the Java,Why perform the which command? Why JAVA_HOME
> is not defined correctly?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)