Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ES_JAVA_HOME #68954

Merged
merged 10 commits into from
Feb 17, 2021
Merged

Introduce ES_JAVA_HOME #68954

merged 10 commits into from
Feb 17, 2021

Conversation

jasontedor
Copy link
Member

@jasontedor jasontedor commented Feb 12, 2021

This commit introduces a dedicated envirnoment variable ES_JAVA_HOME to determine the JDK used to start (if not using the bundled JDK). This environment variable will replace JAVA_HOME. The reason that we are making this change is because JAVA_HOME is a common environment variable and sometimes users have it set in their environment from other JDK applications that they have installed on their system. In this case, they would accidentally end up not using the bundled JDK despite their intentions. By using a dedicated environment variable specific to Elasticsearch, we avoid this potential for conflict. With this commit, we introduce the new enviroinment variable, and deprecate the use of JAVA_HOME. We will remove support for JAVA_HOME in a future commit.

Closes #68848

This commit introduces a dedicated envirnoment variable ES_JAVA_HOME to
determine the JDK used to start (if not using the bundled JDK). This
environment variable will replace JAVA_HOME. The reason that we are
making this change is because JAVA_HOME is a common environment variable
and sometimes users have it set in their environment from other JDK
applications that they have installed on their system. In this case,
they would accidentally end up not using the bundled JDK despite their
intentions. By using a dedicated environment variable specific to
Elasticsearch, we avoid this potential for conflict. With this commit,
we introduce the new enviroinment variable, and deprecate the use of
JAVA_HOME. We will remove support for JAVA_HOME in a future commit.
@jasontedor
Copy link
Member Author

@elasticmachine update branch

@jasontedor jasontedor marked this pull request as ready for review February 17, 2021 15:54
@jasontedor jasontedor added the :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts label Feb 17, 2021
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Feb 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@jasontedor jasontedor merged commit 0cd4863 into elastic:master Feb 17, 2021
@jasontedor jasontedor deleted the es-java-home branch February 17, 2021 17:44
jasontedor added a commit that referenced this pull request Feb 17, 2021
This commit introduces a dedicated envirnoment variable ES_JAVA_HOME to
determine the JDK used to start (if not using the bundled JDK). This
environment variable will replace JAVA_HOME. The reason that we are
making this change is because JAVA_HOME is a common environment variable
and sometimes users have it set in their environment from other JDK
applications that they have installed on their system. In this case,
they would accidentally end up not using the bundled JDK despite their
intentions. By using a dedicated environment variable specific to
Elasticsearch, we avoid this potential for conflict. With this commit,
we introduce the new environment variable, and deprecate the use of
JAVA_HOME. We will remove support for JAVA_HOME in a future commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usage of JAVA_HOME is deprecated in favor of ES_JAVA_HOME
4 participants