Skip to content

Commit

Permalink
Allow to specify a runtime-jdk during installation (elastic#1008)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielmitterdorfer authored Jun 4, 2020
1 parent bd6ea3f commit f3bae85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esrally/rally.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ def runtime_jdk(v):
install_parser.add_argument(
"--team-path",
help="Define the path to the car and plugin configurations to use.")
install_parser.add_argument(
"--runtime-jdk",
type=runtime_jdk,
help="The major version of the runtime JDK to use during installation.",
default=None)
install_parser.add_argument(
"--distribution-repository",
help="Define the repository from where the Elasticsearch distribution should be downloaded (default: release).",
Expand Down

0 comments on commit f3bae85

Please sign in to comment.