Looks like the raw formatted logs are not visible in the Original Post.
Adding the logs and the zookeeper configuration below.

2021-06-11 01:56:52,488 [myid:2] - WARN 
[NIOServerCxnFactory.SelectorThread-0:SecurityUtils@219] - Cannot add
private credential to subject; clients authentication may fail
GSSException: Failure unspecified at GSS-API level (Mechanism level: Too
many open files)
        at
java.security.jgss/sun.security.jgss.wrapper.GSSLibStub.acquireCred(Native
Method)
        at
java.security.jgss/sun.security.jgss.wrapper.GSSCredElement.<init>(GSSCredElement.java:80)
        at
java.security.jgss/sun.security.jgss.wrapper.NativeGSSFactory.getCredentialElement(NativeGSSFactory.java:127)
        at
java.security.jgss/sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:193)
        at
java.security.jgss/sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:439)
        at
java.security.jgss/sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:74)
        at
java.security.jgss/sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:154)
        at
org.apache.zookeeper.util.SecurityUtils.createSaslServer(SecurityUtils.java:212)
        at
org.apache.zookeeper.server.ZooKeeperSaslServer.createSaslServer(ZooKeeperSaslServer.java:44)
        at
org.apache.zookeeper.server.ZooKeeperSaslServer.<init>(ZooKeeperSaslServer.java:38)
        at
org.apache.zookeeper.server.NIOServerCnxn.<init>(NIOServerCnxn.java:91)
        at
org.apache.zookeeper.server.NIOServerCnxnFactory.createConnection(NIOServerCnxnFactory.java:837)
        at
org.apache.zookeeper.server.NIOServerCnxnFactory$SelectorThread.processAcceptedConnections(NIOServerCnxnFactory.java:469)
        at
org.apache.zookeeper.server.NIOServerCnxnFactory$SelectorThread.run(NIOServerCnxnFactory.java:383)
2021-06-11 01:56:52,555 [myid:2] - WARN 
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:2181:RateLogger@56] - [9
times] Message: Error accepting new connection: Too many open files
2021-06-11 01:56:52,618 [myid:2] - WARN 
[NIOServerCxnFactory.SelectorThread-0:SecurityUtils@219] - Cannot add
private credential to subject; clients authentication may fail
GSSException: Failure unspecified at GSS-API level (Mechanism level: Too
many open files)
        at
java.security.jgss/sun.security.jgss.wrapper.GSSLibStub.acquireCred(Native
Method)
        at
java.security.jgss/sun.security.jgss.wrapper.GSSCredElement.<init>(GSSCredElement.java:80)
        at
java.security.jgss/sun.security.jgss.wrapper.NativeGSSFactory.getCredentialElement(NativeGSSFactory.java:127)
        at
java.security.jgss/sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:193)
        at
java.security.jgss/sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:439)
        at
java.security.jgss/sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:74)
        at
java.security.jgss/sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:154)
        at
org.apache.zookeeper.util.SecurityUtils.createSaslServer(SecurityUtils.java:212)
        at
org.apache.zookeeper.server.ZooKeeperSaslServer.createSaslServer(ZooKeeperSaslServer.java:44)
        at
org.apache.zookeeper.server.ZooKeeperSaslServer.<init>(ZooKeeperSaslServer.java:38)
        at
org.apache.zookeeper.server.NIOServerCnxn.<init>(NIOServerCnxn.java:91)
        at
org.apache.zookeeper.server.NIOServerCnxnFactory.createConnection(NIOServerCnxnFactory.java:837)

And my zookepeer configurations is as below:

$ cat /opt/zookeeper/conf/zoo.cfg
tickTime=2000
dataDir=/var/lib/zookeeper
clientPort=2181
initLimit=20
syncLimit=10
maxClientCnxns=256
autopurge.snapRetainCount=3
autopurge.purgeInterval=1
authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
requireClientAuthScheme=sasl
kerberos.localNameProvider=systems.zookeeper.LocalName
kerberos.serviceHostname=
4lw.commands.whitelist=*
reconfigEnabled=true
server.1=server1.example.com:2888:3888:participant
server.2=server2.example.com:2888:3888:participant
server.3=server3.example.com:2888:3888:participant




--
Sent from: http://zookeeper-user.578899.n2.nabble.com/

Reply via email to