Replies: 1 comment
-
I'm pretty sure at the moment elasticsearch has their own Java distribution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@JanusGraph/committers @JanusGraph/maintainers I wanted to discuss Java version conflicts in janusgraph-full build.
I'm currently working on the PR to add ElasticSearch 8 support here: #3268
I bumped into the problem with janusgraph-dist tests failing for tests using ElasticSearch. After a small investigation it appears that ElasticSearch Server 8 doesn't support Java 8 or Java 11 anymore. ElasticSearch Server 8.6.0 requires Java 17, 18, or 19 (see compatibility matrix).
Notice, ElasticSearch Rest client which we are using supports Java 8. It's only the server itself requires Java 17 or higher.
Our janusgraph-dist tests are running against Java 8 and Java 11 and then produce Java 8 and Java 11 compatible builds.
Gremlin Console supports Java 8 and Java 11, but not Java 17.
JanusGraph server supports Java 8, Java 11, Java 17 (and probably more).
As for now, I decided to lock ElasticSearch 7.17.8 version in
janusgraph-dist
builds to be able to continue produce Java 8 and Java 11 compatible builds.There are possible other solutions I see to this problem:
ELASTICSEARCH_JAVA_HOME
environment variable which gets Java fromELASTICSEARCH_JAVA_HOME
instead ofJAVA_HOME
. In such case Cassandra, JanusGraph Server, Gremlin Console will useJAVA_HOME
(which is either 8 or 11) and ElasticSearch will useELASTICSEARCH_JAVA_HOME
(which is 17, 18, or 19). I guess users might be confused a little bit aboutELASTICSEARCH_JAVA_HOME
environment variable, but if we document it in the Installation docs then it should be good I think.GREMLIN_JAVA_HOME
or something like that). In such case Cassandra, ElasticSearch, JanusGraph Server will be running using Java 17, but users will be opening Gremlin Console using Java 8 or Java 11. Again, we will need to document it.Maybe there are other solutions I missed, but would be good to hear your thoughts or preferences here.
Beta Was this translation helpful? Give feedback.
All reactions