AnsweredAssumed Answered

Zookeeper failed to start - java.lang.UnsupportedClassVersionError

Question asked by satz on Nov 24, 2016
Latest reply on Nov 24, 2016 by satz

Zookeeper is failing to start with below exception.

 

2016-11-24 06:52:41,554 [myid:0] - ERROR [main:NIOServerCnxnFactory$1@44] - Thread Thread[main,5,main] died
java.lang.UnsupportedClassVersionError: com/mapr/security/simplesasl/GenericLoginModule : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:252)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:701)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:184)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:673)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:670)
at javax.security.auth.login.LoginContext.login(LoginContext.java:578)
at org.apache.zookeeper.Login.login(Login.java:292)
at org.apache.zookeeper.Login.<init>(Login.java:93)
at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:202)
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:130)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)

Outcomes