cloudera管理页面下开启kerberos,zookeeper无法启动报错
java.io.IOException: No JAAS configuration section named 'Server' was foundin '/etc/zookeeper/conf/jaas.conf'.
at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:196)
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:135)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)
2019-07-16 10:58:09,438 INFO org.apache.zookeeper.server.quorum.QuorumPeerConfig: Reading configuration from: /run/cloudera-scm-agent/process/2352-zookeeper-server/zoo.cfg
2019-07-16 10:58:09,452 INFO org.apache.zookeeper.server.quorum.QuorumPeerConfig: Defaulting to majority quorums
2019-07-16 10:58:09,457 INFO org.apache.zookeeper.server.DatadirCleanupManager: autopurge.snapRetainCount set to 5
2019-07-16 10:58:09,457 INFO org.apache.zookeeper.server.DatadirCleanupManager: autopurge.purgeInterval set to 24
2019-07-16 10:58:09,463 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task started.
2019-07-16 10:58:09,471 INFO org.apache.zookeeper.server.quorum.QuorumPeerMain: Starting quorum peer
2019-07-16 10:58:09,475 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task completed.
2019-07-16 10:58:09,787 ERROR org.apache.zookeeper.server.quorum.QuorumPeerMain: Unexpected exception, exiting abnormally
java.io.IOException: Could not configure server because SASL configuration did not allow the ZooKeeper server to authenticate itself properly: javax.security.auth.login.LoginException: Checksum failed
at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:207)
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
/etc/zookeeper/conf/jaas.conf
Server{
com.sun.security.auth.module.Krb5LoginModule required
useKeytab=true
storeKey=true
useTicketCache=false
keyTab="/etc/zookeeper/conf/zookeeper.keytab"
principal="zookeeper/master@HADOOP.COM"
};
client{
com.sun.security.auth.module.Krb5LoginModule required
useKeytab=true
storeKey=true
useTicketCache=false
keyTab="/etc/zookeeper/conf/zookeeper.keytab"
principal="zookeeper/master@HADOOP.COM"
}
请问楼主解决了吗
参考:https://www.orchome.com/500
你的答案