Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@locus.apache.org Received: (qmail 37408 invoked from network); 5 Jan 2009 18:14:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 18:14:20 -0000 Received: (qmail 36843 invoked by uid 500); 5 Jan 2009 18:14:20 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 36819 invoked by uid 500); 5 Jan 2009 18:14:20 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 36808 invoked by uid 99); 5 Jan 2009 18:14:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 10:14:20 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [69.147.107.20] (HELO mrout1-b.corp.re1.yahoo.com) (69.147.107.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 18:14:10 +0000 Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout1-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id n05IDFhF047207 for ; Mon, 5 Jan 2009 10:13:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:return-path:x-originalarrivaltime; b=LhzQa0SocnOtoS9okZg82fg2fr0lTskhfAfYMHwYJozErE5In1CTrGoZdzx2kCdQ Received: from SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.86]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 5 Jan 2009 10:13:16 -0800 Received: from 172.21.148.16 ([172.21.148.16]) by SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.84]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.59]) with Microsoft Exchange Server HTTP-DAV ; Mon, 5 Jan 2009 18:13:16 +0000 User-Agent: Microsoft-Entourage/12.15.0.081119 Date: Mon, 05 Jan 2009 10:13:15 -0800 Subject: Re: myid.... From: Mahadev Konar To: Message-ID: Thread-Topic: myid.... Thread-Index: AclvYUb4eTNN6XGP+Ei+BlLucyMrhQ== In-Reply-To: <30c6373b0901050958y5921928av3a75a18b3640dbad@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 05 Jan 2009 18:13:16.0366 (UTC) FILETIME=[47C95EE0:01C96F61] X-Virus-Checked: Checked by ClamAV on apache.org You are right Kevin. The myid file is required for creation. I think we had it well documented. Ill check and see if its not documented well enough and open a jira in case its not. mahadev On 1/5/09 9:58 AM, "Kevin Burton" wrote: > Doesn't look like it automatically creates it..... > File myIdFile = new File(dataDir, "myid"); > if (!myIdFile.exists()) { > throw new IllegalArgumentException(myIdFile.toString() > + " file is missing"); > } > > > On Mon, Jan 5, 2009 at 12:01 AM, Kevin Burton wrote: > >> I'll look at the code tomorrow morning but I definitely needed to create >> the myid file for it to work.... might be a bug with my configuration or the >> code.... I'll check the QuorumPeerConfig code tomorrow...... >> Kevin >> >> >> On Sun, Jan 4, 2009 at 11:58 PM, Flavio Junqueira wrote: >> >>> Hi Kevin, The admin doesn't need to create "myid". This is created >>> automaticaly after parsing the configuration file (check >>> QuorumPeerConfig.parse(String[]) if you are interested in the internals). >>> >>> -Flavio >>> >>> >>> On Jan 5, 2009, at 1:10 AM, Kevin Burton wrote: >>> >>> This wasn't clear in the documentation..... but the admin needs to create >>>> the myid file, correct? >>>> Couldn't this happen on init if we use IP addresses and we note that it's >>>> a >>>> new zk server? >>>> >>>> Kevin >>>> >>>> -- >>>> Founder/CEO Spinn3r.com >>>> Location: San Francisco, CA >>>> AIM/YIM: sfburtonator >>>> Skype: burtonator >>>> Work: http://spinn3r.com >>>> >>> >>> >> >> >> -- >> Founder/CEO Spinn3r.com >> Location: San Francisco, CA >> AIM/YIM: sfburtonator >> Skype: burtonator >> Work: http://spinn3r.com >> > >