zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrien ruffie <adriennolar...@hotmail.fr>
Subject Re: Permission denied as zookeeper user
Date Tue, 17 Jul 2018 19:18:08 GMT
Thank Andor !
I have found thé problème.
My zookeeper user doesn't have right on /Var/lib/zookeeper and /usr/local/zookeeper
Because directoires were créateur as Root !

Télécharger Outlook pour Android<https://aka.ms/ghei36>



De : Andor Molnar
Envoyé : mardi 17 juillet 21:04
Objet : Re: Permission denied as zookeeper user
À : user@zookeeper.apache.org


Hi Adrian, Check the ‘dataDir’ and ‘dataLogDir’ (might be the same) directory permissions.
Zookeeper running user must have write permissions to them. Regards, Andor > On 2018. Jul
17., at 18:39, adrien ruffie wrote: > > Hello everyone, > > > I have a little
problem when I try to launch "./zkServer.sh start" with my "zookeeper" user ... > >
I get the following stacktrace: > > > 2018-07-17 18:26:53,569 [myid:5] - INFO [WorkerReceiver[myid=5]:FastLeaderElection@600]
- Notification: 1 (message format version), 3 (n.leader), 0x2765900000006 (n.zxid), 0x43 (n.round),
FOLLOWING (n.state), 1 (n.sid), 0x2765a (n.peerEpoch) FOLLOWING (my state) > 2018-07-17
18:26:53,574 [myid:5] - INFO [QuorumPeer[myid=5]/0:0:0:0:0:0:0:0:2181:Learner@326] - Getting
a diff from the leader 0x2765900000006 > 2018-07-17 18:26:53,575 [myid:5] - WARN [QuorumPeer[myid=5]/0:0:0:0:0:0:0:0:2181:Follower@87]
- Exception when following the leader > java.io.IOException: Permission denied > at
java.io.UnixFileSystem.createFileExclusively(Native Method) > at java.io.File.createNewFile(File.java:1012)
> at org.apache.zookeeper.server.quorum.Learner.syncWithLeader(Learner.java:436) > at
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:80) > at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:846)
> 2018-07-17 18:26:53,575 [myid:5] - INFO [QuorumPeer[myid=5]/0:0:0:0:0:0:0:0:2181:Follower@164]
- shutdown called > java.lang.Exception: shutdown Follower > at org.apache.zookeeper.server.quorum.Follower.shutdown(Follower.java:164)
> at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:850) > > >
> > > But when I launch as root, the problem disappears ... > > I understand
which is a permission denied for my zookeeper user, but the stack doesn't give me, the concerned
file or directory ... > > > Do you already get the same problem ? > > >
Thank, and best regards, > > > Adrien


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message