Skip to content

Startup scripts: verify Java 8 (exactly), improve port/java verification messages.#8794

Merged
clintropolis merged 2 commits intoapache:masterfrom
gianm:startup-verifications
Oct 31, 2019
Merged

Startup scripts: verify Java 8 (exactly), improve port/java verification messages.#8794
clintropolis merged 2 commits intoapache:masterfrom
gianm:startup-verifications

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Oct 30, 2019

Java 11 compatibility isn't fully baked yet (users have reported various
issues on Java 11), so block startup with an error message unless Java 8
is found. Allow overriding this decision with an environment variable.

…ion messages.

Java 11 compatibility isn't fully baked yet (users have reported various
issues on Java 11), so block startup with an error message unless Java 8
is found. Allow overriding this decision with an environment variable.
Copy link
Copy Markdown
Contributor

@suneet-s suneet-s left a comment

Choose a reason for hiding this comment

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

+1 I stumbled on the java issue the first time I tried running druid!

Comment thread examples/bin/verify-java Outdated
sub fail_check {
my ($current_version) = @_;
my $current_version_text =
$current_version ? " Your current version is: $current_version." : "";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: would be nice to have the error message say something along the lines of java isn't on the PATH for the else case

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I added Make sure that "java" is installed and on your PATH.

Comment thread examples/bin/verify-default-ports Outdated

export DRUID_SKIP_PORT_CHECK=1

Otherwise, free up port $port and try again.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Would be nice to link to https://druid.apache.org/docs/latest/configuration/index.html for more details on changing the ports / what the different ports are used for.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I made some adjustments, let me know what you think.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@suneet-s
Copy link
Copy Markdown
Contributor

Thanks for this fix!

@clintropolis clintropolis merged commit edb3b00 into apache:master Oct 31, 2019
@gianm gianm deleted the startup-verifications branch October 31, 2019 05:45
gianm added a commit to gianm/druid that referenced this pull request Oct 31, 2019
Accidentally missed some quote escaping in apache#8794.
@gianm gianm mentioned this pull request Oct 31, 2019
gianm added a commit that referenced this pull request Oct 31, 2019
Accidentally missed some quote escaping in #8794.
jon-wei pushed a commit to implydata/druid-public that referenced this pull request Nov 25, 2019
…ion messages. (apache#8794)

* Startup scripts: verify Java 8 (exactly), improve port/java verification messages.

Java 11 compatibility isn't fully baked yet (users have reported various
issues on Java 11), so block startup with an error message unless Java 8
is found. Allow overriding this decision with an environment variable.

* Message adjustments.
jon-wei pushed a commit to jon-wei/druid that referenced this pull request Nov 27, 2019
…ion messages. (apache#8794)

* Startup scripts: verify Java 8 (exactly), improve port/java verification messages.

Java 11 compatibility isn't fully baked yet (users have reported various
issues on Java 11), so block startup with an error message unless Java 8
is found. Allow overriding this decision with an environment variable.

* Message adjustments.
jon-wei added a commit that referenced this pull request Nov 27, 2019
…ion messages. (#8794) (#8951)

* Startup scripts: verify Java 8 (exactly), improve port/java verification messages.

Java 11 compatibility isn't fully baked yet (users have reported various
issues on Java 11), so block startup with an error message unless Java 8
is found. Allow overriding this decision with an environment variable.

* Message adjustments.
jon-wei pushed a commit to jon-wei/druid that referenced this pull request Nov 28, 2019
Accidentally missed some quote escaping in apache#8794.
jon-wei added a commit that referenced this pull request Nov 28, 2019
Accidentally missed some quote escaping in #8794.
@jon-wei jon-wei added this to the 0.17.0 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants