The version of OpenJDK I'm using is: 
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)

The version of druid I'm using is the one that's generally available on the 
druid website.
0.16.0-incubating

Tony Schwartz





On 2019/11/02 17:59:21, Gian Merlino <g...@apache.org> wrote: 
> Hi Tony,
> 
> Druid doesn't fully support Java 11 today — we're working towards it but
> there are issues to work through related to 'unofficial' APIs we need for
> ByteBuffers and Cleaners, as well as issues with dependencies like
> DataSketches and Hadoop. We've updated our docs recently to reflect it:
> https://druid.apache.org/docs/latest/tutorials/index.html (note the "Java
> 8" requirement currently called out).
> 
> I'm surprised to hear you had issues on OpenJDK 8 though. I am using an
> OpenJDK variant personally (Corretto v. 8.212.04.2; base OpenJDK version
> 1.8.0_212) as are many other Druid developers I know. We also use OpenJDK
> for our automated tests and lots of people use it in production. It is
> considered fully supported.
> 
> To help get to the bottom of it: what version specifically of OpenJDK are
> you using, what version of Druid were you trying to build (was it a release
> or a git checkout?) and what commands did you run?
> 
> On Sat, Nov 2, 2019 at 10:49 AM <t...@xfire.io> wrote:
> 
> > Does anyone use druid on openjdk?  Is openjdk supported?  I can't get
> > druid to work on openjdk without this fix.  I'm a little concerned about
> > the production readiness of this product on openjdk.  should I be?
> >
> > I will get this PR submitted, but it's quite simple, I was hoping an
> > active druid developer would pick this up as an obvious need.
> >
> > Tony
> >
> > On 2019-11-01 13:47, Jad Naous wrote:
> >
> > > Hi Tony, thank you for doing this! It would be really helpful if you can
> > > open a PR with the change so we can review it!
> > >
> > > On Fri, Nov 1, 2019 at 9:50 AM Tony Schwartz <tonyschwa...@gmail.com>
> > wrote:
> > >
> > > Yes, I was able to build the project now with my recommended code change
> > > and it works fine.   Can someone please look into making this change?  So
> > > far, it's the only issue I've run into with OpenJDK.
> > >
> > > Thank you,
> > >
> > > Tony Schwartz
> > >
> > > On Fri, Nov 1, 2019 at 11:34 AM Tony Schwartz <tonyschwa...@gmail.com>
> > > wrote:
> > >
> > > The app fails to hand off the segments to the "historical" coordinator
> > (or whatever it's called) so all my segments become immediately unavailable.
> > > On the 2 versions of the latest OpenJDK (8 and 11) on which I've tried
> > > this, I get the same issue.  What I believe is happening can be fixed
> > with a code change to:  DruidCoordinator.java @line 690.  the instance inner
> > > class CoordinatorHistoricalManagerRunnable has a constructor that is
> > > referencing DruidCoordinator.this prior to the super(...) constructor
> > being invoked.  This causes a failure.  A work-around is to pass the
> > coordinator instance to the constructor:
> > > CoordinatorHistoricalManagerRunnable(final DruidCoordinator c, final int
> > > startingLeaderCounter)
> > > and then, reference c instead of DruidCoordinator.this throughout that
> > > constructor method.  You can probably make this a static inner class at
> > > that point, although I haven't analyzed it that far.
> > >
> > > The exception that shows up in the coordinator-overlord.log is:
> > > 2019-10-31T16:23:02,953 ERROR
> > > [LeaderSelector[/druid/coordinator/_COORDINATOR]]
> > > org.apache.curator.framework.listen.ListenerContainer - Listener
> > > (org.apache.druid.curator.discovery.CuratorDruidLeaderSelector$1@1e7d3d87
> > ) threw an exception
> > > java.lang.ClassFormatError: Illegal field name
> > > "org.apache.druid.server.coordinator.DruidCoordinator$this" in class
> > >
> > >
> > org/apache/druid/server/coordinator/DruidCoordinator$CoordinatorHistoricalManagerRunnable
> >
> > >
> > > I have tried to make this change myself and to test it, but I am unable
> > to build the project due to rat licensing issues.  Also, when I don't run
> > rat via the mvn build, i get another error:  gpg: signing failed: No
> > pinentry
> > > ..
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
> > (sign-release-artifacts) on project druid: Exit code: 2 -> [Help 1]
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscr...@druid.apache.org
> > > For additional commands, e-mail: dev-h...@druid.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@druid.apache.org
For additional commands, e-mail: dev-h...@druid.apache.org

Reply via email to