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

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

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

gianm
Copy link
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
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!

sub fail_check {
my ($current_version) = @_;
my $current_version_text =
$current_version ? " Your current version is: $current_version." : "";
Copy link
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
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.


export DRUID_SKIP_PORT_CHECK=1

Otherwise, free up port $port and try again.
Copy link
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
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
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
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.

None yet

4 participants