This is very annoying, I see.
A possible fix for you is to let the user that executes Zookeeper to write
in the directory.

Can you create a JIRA? It would be better that the daemon does not write to
the directory with code


Enrico

Il Dom 12 Apr 2020, 02:10 allen chan <[email protected]> ha
scritto:

> Hello
>
> Anyone seen this behavior and know how to resolve it?
>
> zookeeper version: zookeeper-3.6.0
> reconfigEnabled=false
>
>
> Upon startup, zk has this complaint even though reconfiguration is
> disabled.
>
> 2020-04-11 17:02:22,393 [myid:1] - ERROR
>
> [QuorumPeer[myid=1](plain=[0:0:0:0:0:0:0:0]:2181)(secure=disabled):QuorumPeer@1841
> ]
> - Error writing next dynamic config file to disk
> java.io.FileNotFoundException: /etc/zookeeper/zoo.cfg.dynamic.next.tmp
> (Permission denied)
> at java.io.FileOutputStream.open0(Native Method)
> at java.io.FileOutputStream.open(FileOutputStream.java:270)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
> at
>
> org.apache.zookeeper.common.AtomicFileOutputStream.<init>(AtomicFileOutputStream.java:59)
> at
>
> org.apache.zookeeper.common.AtomicFileWritingIdiom.<init>(AtomicFileWritingIdiom.java:64)
> at
>
> org.apache.zookeeper.common.AtomicFileWritingIdiom.<init>(AtomicFileWritingIdiom.java:54)
> at
>
> org.apache.zookeeper.server.quorum.QuorumPeerConfig.writeDynamicConfig(QuorumPeerConfig.java:568)
> at
>
> org.apache.zookeeper.server.quorum.QuorumPeer.setLastSeenQuorumVerifier(QuorumPeer.java:1838)
> at
> org.apache.zookeeper.server.quorum.Learner.syncWithLeader(Learner.java:679)
> at
> org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:107)
> at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1455)
>
>
> thx
> --
> Allen Michael Chan
>

Reply via email to