AnsweredAssumed Answered

After securing the cluster zookeeper is not coming up

Question asked by rakesh_sharma on Jul 16, 2014
Latest reply on Jul 21, 2014 by rakesh_sharma
I am following link:[mapr doc](http://doc.mapr.com/display/MapR/Enabling+Security+Features+on+Your+Cluster) after running configure.sh -secure, zookeeper is not coming up, when i checked for logs in /opt/mapr/zookeeper/zookeeper-3.4.5/logs/zookeper.log getting the below error :

<pre>
Starting zookeeper ... 2014-07-17 06:09:33,929 [myid:] - INFO  [main:QuorumPeerConfig@101] - Reading configuration from: /opt/mapr/zookeeper/zookeeper-3.4.5/conf/zoo.cfg
2014-07-17 06:09:33,935 [myid:] - INFO  [main:QuorumPeerConfig@334] - Defaulting to majority quorums
2014-07-17 06:09:33,940 [myid:0] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2014-07-17 06:09:33,940 [myid:0] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 24
2014-07-17 06:09:33,941 [myid:0] - INFO  [PurgeTask:DatadirCleanupManager$PurgeTask@138] - Purge task started.
2014-07-17 06:09:33,958 [myid:0] - INFO  [PurgeTask:DatadirCleanupManager$PurgeTask@144] - Purge task completed.
2014-07-17 06:09:33,960 [myid:0] - INFO  [main:QuorumPeerMain@127] - Starting quorum peer
2014-07-17 06:09:34,002 [myid:0] - ERROR [main:NIOServerCnxnFactory$1@44] - Thread Thread[main,5,main] died
java.lang.NoClassDefFoundError: com/google/protobuf/Internal$EnumLite
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at com.mapr.security.maprsasl.MaprSecurityLoginModule.<clinit>(MaprSecurityLoginModule.java:67)
    at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:718)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:595)
        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)
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.Internal$EnumLite
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 29 more
STARTED

Outcomes