You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Markus Weimer (JIRA)" <ji...@apache.org> on 2016/11/10 22:34:58 UTC

[jira] [Resolved] (REEF-1665) Better default value for Java binary path

     [ https://issues.apache.org/jira/browse/REEF-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Weimer resolved REEF-1665.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.16

Resolved via [#1179|https://github.com/apache/reef/pull/1179]

> Better default value for Java binary path
> -----------------------------------------
>
>                 Key: REEF-1665
>                 URL: https://issues.apache.org/jira/browse/REEF-1665
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF Client, REEF Driver
>            Reporter: Sergiy Matusevych
>            Assignee: Sergiy Matusevych
>            Priority: Minor
>              Labels: environment, java, path, runtime
>             Fix For: 0.16
>
>
> {{JavaLaunchCommandBuilder}} sets the default path to the Java executable  in this way:
> {code:java}
> private static final String DEFAULT_JAVA_PATH = System.getenv("JAVA_HOME") + "/bin/" + "java";
> {code}
> That is, *by default* REEF client assumes that
>   1) you have {{JAVA_HOME}} environment variable set, and
>   2) your {{JAVA_HOME}} is the same as the one on the remote host.
> A better solution would be to set
> {code:java}
> DEFAULT_JAVA_PATH = "java";
> {code}
> and assume that java binary is in the system's {{PATH}} - both on the client and in the cluster.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)