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

Allow to specify a runtime-jdk during installation #1008

Conversation

danielmitterdorfer
Copy link
Member

The install subcommand sometimes requires to run so called install
hooks, for example to install plugins. These are installed with
Elasticsearch's plugin script which requires Java. Yet, if we rely on
the bundled JDK and no other JDK is installed on the system, the java
binary cannot be resolved because no runtime JDK is specified at all.
With this commit we expose the command line option --runtime-jdk so
users can provide bundled in the installation phase.

The `install` subcommand sometimes requires to run so called install
hooks, for example to install plugins. These are installed with
Elasticsearch's `plugin` script which requires Java. Yet, if we rely on
the bundled JDK and no other JDK is installed on the system, the `java`
binary cannot be resolved because no runtime JDK is specified at all.
With this commit we expose the command line option `--runtime-jdk` so
users can provide `bundled` in the installation phase.
@danielmitterdorfer danielmitterdorfer added bug Something's wrong :Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch labels Jun 4, 2020
@danielmitterdorfer danielmitterdorfer added this to the 2.0.1 milestone Jun 4, 2020
@danielmitterdorfer danielmitterdorfer self-assigned this Jun 4, 2020
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielmitterdorfer danielmitterdorfer merged commit f3bae85 into elastic:master Jun 4, 2020
@danielmitterdorfer danielmitterdorfer deleted the runtime-jdk-for-install branch June 4, 2020 11:01
@hub-cap
Copy link
Contributor

hub-cap commented Jun 4, 2020

@danielmitterdorfer should this be set to bundled by default instead of None?

@danielmitterdorfer
Copy link
Member Author

@hub-cap not in my opinion because we can't guarantee that as default (there are versions without a bundled JDK + there are pre 7.0.0 versions) and this is consistent with how we handle it with other subcommands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch bug Something's wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants