From user-return-11570-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Tue Jul 17 21:04:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 07657180600 for ; Tue, 17 Jul 2018 21:04:08 +0200 (CEST) Received: (qmail 77509 invoked by uid 500); 17 Jul 2018 19:04:07 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 77498 invoked by uid 99); 17 Jul 2018 19:04:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2018 19:04:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3E9421A13E3 for ; Tue, 17 Jul 2018 19:04:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id A1kJ2lV2jrpb for ; Tue, 17 Jul 2018 19:04:06 +0000 (UTC) Received: from mail.foltnet.hu (mail.foltnet.hu [185.161.74.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 830A05F30B for ; Tue, 17 Jul 2018 19:04:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.foltnet.hu (Postfix) with ESMTP id 0A6E8180339 for ; Tue, 17 Jul 2018 21:03:59 +0200 (CEST) X-Amavis-Scanner: FOLTnet VirusScanner found it clean Received: from mail.foltnet.hu ([127.0.0.1]) by localhost (mail.foltnet.hu [127.0.0.1]) (amavisd-new, port 10026) with LMTP id bDAwoNaEHCHo for ; Tue, 17 Jul 2018 21:03:57 +0200 (CEST) Received: from [192.168.1.6] (BC2463D2.dsl.pool.telekom.hu [188.36.99.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.foltnet.hu (Postfix) with ESMTPSA id 39DC118031C for ; Tue, 17 Jul 2018 21:03:57 +0200 (CEST) From: Andor Molnar Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: Permission denied as zookeeper user Date: Tue, 17 Jul 2018 21:03:56 +0200 References: To: user@zookeeper.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.8.2) Hi Adrian, Check the =E2=80=98dataDir=E2=80=99 and =E2=80=98dataLogDir=E2=80=99 = (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: >=20 > Hello everyone, >=20 >=20 > I have a little problem when I try to launch "./zkServer.sh start" = with my "zookeeper" user ... >=20 > I get the following stacktrace: >=20 >=20 > 2018-07-17 18:26:53,569 [myid:5] - INFO = [WorkerReceiver[myid=3D5]: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=3D5]/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=3D5]/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=3D5]/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) >=20 >=20 >=20 >=20 >=20 > But when I launch as root, the problem disappears ... >=20 > I understand which is a permission denied for my zookeeper user, but = the stack doesn't give me, the concerned file or directory ... >=20 >=20 > Do you already get the same problem ? >=20 >=20 > Thank, and best regards, >=20 >=20 > Adrien