Re: Permission denied as zookeeper user

2018-07-17 Thread adrien ruffie
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 De : Andor Molnar Envoyé : mardi 17 juillet 21:04 Objet : Re:

Permission denied as zookeeper user

2018-07-17 Thread adrien ruffie
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),

Re: Zookeeper consistency

2018-07-17 Thread Michael Han
>> I think that Zookeeper is linearable only if there are only write operation. Yes writes are linearizable because writes are totally ordered globally. For read, a linearizable read needs to read the latest writes in the system at the point in time the read is issued; so by this definition, ZK

Re: Permission denied as zookeeper user

2018-07-17 Thread Andor Molnar
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

Re: ZooKeeper Cluster Health Checking

2018-07-17 Thread harish lohar
We did it via java monitoring app , using zookeeper java api which sends 4 lw commands to zookeeper and returns the output. Thanks Harish On Tue, Jul 17, 2018 at 2:00 AM adrien ruffie wrote: > Hi Harish, > > > thank you very much for this advise and explanation ! > > Do you think with just a

RE: zookeeper as systemd

2018-07-17 Thread adrien ruffie
thank you very much Norbert ! I take your useful suggestion, and try to launch zookeeper with your service file. Great thank, Adrien De : Norbert Kalmar Envoyé : lundi 16 juillet 2018 16:18:36 À : user@zookeeper.apache.org Objet : Re: zookeeper as systemd

RE: ZooKeeper Cluster Health Checking

2018-07-17 Thread adrien ruffie
Hi Harish, thank you very much for this advise and explanation ! Do you think with just a simple script shell for checking all this metrics is enough ? Or would better to do it in a Java with a simple monitoring application? Thank again, Best regards, Adrien

Re: Problem with ZK log files and snapshots

2018-07-17 Thread Baskar Duraikannu
If your transactions are short lived (something like you are taking a lock and then releasing it), you will find that “containers” holding these locks are not cleaned by Zookeeper. This in turn will make snapshot files big and will cause all sorts of issues. I found myself in that situation few

Zookeeper consistency

2018-07-17 Thread chen dongming
hi, I am reading the old thread of http://comments.gmane.org/gmane.comp.java.hadoop.zookeeper.user/5221. I have 2 questions. Question 1: I agree with Zookeeper is sequential consistency, but I don't think Zookeeper is linearizability even if doing sync+read for every read.  for example,

Re: ZooKeeper Cluster Health Checking

2018-07-17 Thread Norbert Kalmar
Hi Adrien, Take a look at monitoring in src/contrib/monitoring - it does what you would like to achieve, in python. Read the README for more information: https://github.com/apache/zookeeper/tree/master/src/contrib/monitoring If this one is not good for you, you can use JMX to query MBeans. A