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

Pinot compilation errors with Java 11 #3625

Closed
mcvsubbu opened this issue Dec 22, 2018 · 6 comments
Closed

Pinot compilation errors with Java 11 #3625

mcvsubbu opened this issue Dec 22, 2018 · 6 comments

Comments

@mcvsubbu
Copy link
Contributor

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project pinot-core: Compilation failure: Compilation failure:
[ERROR] /Users/kishoreg/projects/incubator-pinot/pinot-core/src/main/java/com/linkedin/pinot/core/segment/memory/PinotByteBuffer.java:[27,17] DirectBuffer is internal proprietary API and may be removed in a future release
[ERROR] /Users/kishoreg/projects/incubator-pinot/pinot-core/src/main/java/com/linkedin/pinot/core/segment/memory/PinotByteBuffer.java:[26,15] error: cannot find symbol
[ERROR] symbol: class Cleaner
[ERROR] location: package sun.misc
[ERROR] /Users/kishoreg/projects/incubator-pinot/pinot-core/src/main/java/com/linkedin/pinot/core/segment/memory/PinotByteBuffer.java:[27,17] DirectBuffer is internal proprietary API and may be removed in a future release

@rustkas
Copy link

rustkas commented Feb 21, 2019

How to fix it?

@vivekjj
Copy link

vivekjj commented Apr 8, 2019

How was this fixed? I get the exact same error.

@kishoreg
Copy link
Member

kishoreg commented Apr 8, 2019

@vivekjj Pinot is not tested with jdk 11. Please use JDK 9 for building and running Pinot.

@vivekjj
Copy link

vivekjj commented Apr 8, 2019

Thanks!

@lsabi
Copy link

lsabi commented Aug 30, 2019

@kishoreg is there any plan/roadmap to support newer versions of java?

Also, the only mention that I could find on the docs about the supported java version(s) is in the getting started tutorial, see https://pinot.readthedocs.io/en/latest/getting_started.html.

Though it only says that is requires java 8 or later. As a new user I was compiling with java 11 and getting errors. Only by trying out with java 8 I managed to run pinot. It would be better to explicitly write the supported java versions in order for new users to go through the tutorial smoothly.

Thanks.

@xiangfu0
Copy link
Contributor

xiangfu0 commented Feb 14, 2020

I've fixed those compilation error with java 11 and also added QuickStart tests to build Pinot with both JDK 8 and 11 for Travis.

Example: https://travis-ci.org/apache/incubator-pinot/builds/650497203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants