janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

Failed to start on JDK 11

Open nnanda2016 opened this issue 4 years ago • 8 comments

My env:

  • MacOS Catalina (v10.15.5)
  • Java: OpenJDK 11.0.7
  • Janusgraph: 0.5.2

Following the documentation at https://docs.janusgraph.org/getting-started/installation/ I tried to start a local instance. But it failed with following error.

java -version
openjdk version "11.0.7" 2020-04-14 LTS

./janusgraph.sh start -v
Forking Cassandra...
Running `nodetool statusthrift`.Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Is it a known bug? Could someone tell me what's the workaround?

nnanda2016 avatar Jul 10 '20 22:07 nnanda2016

As the doc suggests,

In order to run JanusGraph, Java 8 SE is required

Btw gitter and mailing list are more appropriate places to ask questions.

li-boxuan avatar Jul 11 '20 04:07 li-boxuan

The PR to add support fir jdk 11 in Gremlin is just added: https://github.com/apache/tinkerpop/pull/1299

TinkerPop will bring jdk 11 support in version 3.5.0 (not released yet). We are expecting to add jdk 11 support after the upgrade.

Current JanusGraph versions don't support jdk 11.

porunov avatar Jul 11 '20 09:07 porunov

Any update?

i-davydov avatar Oct 19 '20 14:10 i-davydov

@i-davydov TinkerPop added jdk 11 support for TinkerPop version 3.5.0 but that version isn't released yet. You can search for available TinkerPop versions here: https://github.com/apache/tinkerpop/releases

porunov avatar Nov 14 '20 08:11 porunov

@porunov - couple of questions

  1. Is there a potential release date for Janusgraph 0.6 release?
  2. what does experimental support for Java 11 stand for? should we not move our java infra to jdk 11 with 0.6 yet or any known issues with it? Thank you!

shyamremella avatar Jul 02 '21 11:07 shyamremella

Is there a potential release date for Janusgraph 0.6 release?

We are waiting on TinkerPop 3.5.1 right now. I created a topic for that release here: https://lists.apache.org/thread.html/r5c3e754750a2b20d4d06ba1cae1baaa3c6bd93fcd24f46ef20a5e55b%40%3Cdev.tinkerpop.apache.org%3E I don't know when TinkerPop 3.5.1 will be released, so can't say for sure when JanusGraph 0.6.0 will be released. You can follow discussion around JanusGraph 0.6.0 release here: https://github.com/JanusGraph/janusgraph/pull/2672

porunov avatar Jul 02 '21 11:07 porunov

what does experimental support for Java 11 stand for? should we not move our java infra to jdk 11 with 0.6 yet or any known issues with it?

We didn't test Java 11 support against all test cases as we do with Java 8. That said, JanusGraph 0.6.0 should be compatible with Java 11. If you are using CQL storage backend you are most likely to be fine as it is covered by Java 11 tests.

porunov avatar Jul 02 '21 11:07 porunov

Thank you @porunov

shyamremella avatar Jul 02 '21 12:07 shyamremella

Everything is tested against java so we can close this issue.

farodin91 avatar Sep 15 '22 20:09 farodin91