From user-return-6811-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Mon Sep 30 23:09:41 2013 Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E96C8109E7 for ; Mon, 30 Sep 2013 23:09:40 +0000 (UTC) Received: (qmail 69946 invoked by uid 500); 30 Sep 2013 23:09:40 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 69908 invoked by uid 500); 30 Sep 2013 23:09:39 -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 69900 invoked by uid 99); 30 Sep 2013 23:09:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 23:09:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mckenzie.cam@gmail.com designates 209.85.217.181 as permitted sender) Received: from [209.85.217.181] (HELO mail-lb0-f181.google.com) (209.85.217.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 23:09:34 +0000 Received: by mail-lb0-f181.google.com with SMTP id u14so5210234lbd.12 for ; Mon, 30 Sep 2013 16:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XrgE+vKEoSti9YgK2U4dAcKhBydeAF+NLP8p4/xPcbY=; b=wiq29qV2X0mLVgFNcEFwJVX4ch36y63M3PMx6XqMPZWTnXfAUAMrYOWfnsrRXMZ4vD xg5NSaQfr6JFmZ2oud5dyLath34j9I9umixqwD0e5brIy8zvW/Pm4rHaSf01TNX30ieU ABwZ2RwW7bCoCm8KskzG0fhum4EBblNvWdCqXV6l90Wpd46fSNMOW0r2XQi0d3DwtOHr 7posgURuCwVoM5AN2v+GwzXQoaJ1a38xDINQKD0tsVPTaz/ok7qV6C36GnRCFTHg/eBh 5VGSShgJo2G0eLDFuwhQoLCsX8n1IDBLeH89cPjdwNc9VxCICrNJANe+tyOnfqT7tIsp N0+g== MIME-Version: 1.0 X-Received: by 10.152.37.41 with SMTP id v9mr22294619laj.9.1380582553653; Mon, 30 Sep 2013 16:09:13 -0700 (PDT) Received: by 10.112.161.101 with HTTP; Mon, 30 Sep 2013 16:09:13 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Oct 2013 09:09:13 +1000 Message-ID: Subject: Re: Command-line arg instead of myid file? From: Cameron McKenzie To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=089e0160b998b1976004e7a1ec8f X-Virus-Checked: Checked by ClamAV on apache.org --089e0160b998b1976004e7a1ec8f Content-Type: text/plain; charset=ISO-8859-1 While it's obviously a workaround, wouldn't it be trivial to create a wrapper script around the zkServer.sh script that takes the value of the myid file as an argument and creates / overwrites it when you start the server? On Tue, Oct 1, 2013 at 7:19 AM, Jordan Zimmerman wrote: > FYI - management of the myid file and zoo.cfg is one of the raison d'etre > of Netflix Exhibitor: https://github.com/Netflix/exhibitor > > On Sep 30, 2013, at 2:13 PM, Matthias Ogden > wrote: > > > The "myid" file is currently causing me a fair bit of grief because I > have > > to manually create the file on each host in my cluster. > > > > Is there a philosophical reason why it wouldn't be possible to change > > ZooKeeper to support a command-line argument instead of the myid file? > Then > > I could provide custom launch args to each instance while leaving the > host > > bootstrapping alone. > > --089e0160b998b1976004e7a1ec8f--