milleruntime opened a new issue #342:
URL: https://github.com/apache/fluo-muchos/issues/342
I was trying to setup a 2.1 cluster with Java 11 and Accumulo will fail to
initialize due to the wrong java version. The cluster is still running Java 8
even with Java 11 configured in mucos.props.
```
# The package to use for java 11
java_package=java-11-openjdk-devel
```
```
RUNNING HANDLER [initialize accumulo]
*****************************************************************************************************************************************************************************
Monday 04 May 2020 18:29:21 +0000 (0:00:02.318) 0:03:50.878
************
fatal: [leader1]: FAILED! => {"changed": true
"cmd": ["/home/centos/install/accumulo-2.1.0-SNAPSHOT/bin/accumulo"
"init"
"--clear-instance-name"
"--instance-name"
"muchos"
"--password"
"secret"]
"delta": "0:00:00.114641"
"end": "2020-05-04 18:29:22.102107"
"msg": "non-zero return code"
"rc": 1
"start": "2020-05-04 18:29:21.987466"
"stderr": "Error: A JNI error has occurred
please check your installation and try again\nException in thread \"main\"
java.lang.UnsupportedClassVersionError: org/apache/accumulo/start/Main has been
compiled by a more recent version of the Java Runtime (class file version 55.0)
this version of the Java Runtime only recognizes class file versions up to
52.0\n\tat java.lang.ClassLoader.defineClass1(Native Method)\n\tat
java.lang.ClassLoader.defineClass(ClassLoader.java:756)\n\tat
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n\tat
java.net.URLClassLoader.defineClass(URLClassLoader.java:468)\n\tat
java.net.URLClassLoader.access$100(URLClassLoader.java:74)\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:369)\n\tat
java.net.URLClassLoader$1.run(URLClassLoader.java:363)\n\tat
java.security.AccessController.doPrivileged(Native Method)\n\tat
java.net.URLClassLoader.findClass(URLClassLoader.java:362)\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:418)\n\tat
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:351)\n\tat
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)"
"stderr_lines": ["Error: A JNI error has occurred
please check your installation and try again"
"Exception in thread \"main\" java.lang.UnsupportedClassVersionError:
org/apache/accumulo/start/Main has been compiled by a more recent version of
the Java Runtime (class file version 55.0)
this version of the Java Runtime only recognizes class file versions up to
52.0"
"\tat java.lang.ClassLoader.defineClass1(Native Method)"
"\tat java.lang.ClassLoader.defineClass(ClassLoader.java:756)"
"\tat
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)"
"\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:468)"
"\tat java.net.URLClassLoader.access$100(URLClassLoader.java:74)"
"\tat java.net.URLClassLoader$1.run(URLClassLoader.java:369)"
"\tat java.net.URLClassLoader$1.run(URLClassLoader.java:363)"
"\tat java.security.AccessController.doPrivileged(Native Method)"
"\tat java.net.URLClassLoader.findClass(URLClassLoader.java:362)"
"\tat java.lang.ClassLoader.loadClass(ClassLoader.java:418)"
"\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)"
"\tat java.lang.ClassLoader.loadClass(ClassLoader.java:351)"
"\tat
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)"]
"stdout": ""
"stdout_lines": []}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]