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 0576D10A12 for ; Wed, 9 Sep 2015 20:01:18 +0000 (UTC) Received: (qmail 31226 invoked by uid 500); 9 Sep 2015 20:01:11 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31185 invoked by uid 500); 9 Sep 2015 20:01:11 -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 31173 invoked by uid 99); 9 Sep 2015 20:01:10 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2015 20:01:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CA7B3E1CE6 for ; Wed, 9 Sep 2015 20:01:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Status: No, score=2.979 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id iTk_FR1xJkkI for ; Wed, 9 Sep 2015 20:01:08 +0000 (UTC) Received: from COL004-OMC3S9.hotmail.com (col004-omc3s9.hotmail.com [65.55.34.147]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id AA27042F32 for ; Wed, 9 Sep 2015 20:01:08 +0000 (UTC) Received: from COL129-W16 ([65.55.34.137]) by COL004-OMC3S9.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 9 Sep 2015 13:01:02 -0700 X-TMN: [DS/MlRGqVS1SetShPMTuvk0aP+rxu07P] X-Originating-Email: [eleroy@msn.com] Message-ID: Content-Type: multipart/alternative; boundary="_4c597a33-62c3-4f32-89d0-bb1333ea4be7_" From: Emmanuel To: "user@zookeeper.apache.org" Subject: using IP instead of hostname Date: Wed, 9 Sep 2015 13:01:01 -0700 Importance: Normal In-Reply-To: References: , MIME-Version: 1.0 X-OriginalArrivalTime: 09 Sep 2015 20:01:02.0302 (UTC) FILETIME=[40E367E0:01D0EB3A] --_4c597a33-62c3-4f32-89d0-bb1333ea4be7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C Does anyone know of a way to use IP as opposed to hostname for ZK nodes to = resolve each other?thanks > From: eleroy@msn.com > To: user@zookeeper.apache.org > Subject: RE: advertised hostname vs IP > Date: Tue=2C 8 Sep 2015 13:59:40 -0700 >=20 > Just read the part of the zk config for 3.5 which explains these options = are no longer used > i do use the format server.ID=3DIP:28:388:participant=3BIP:2181 > so i do define the IP as the address to talk to=2C yet ZK keeps trying wi= th the hostname.how do i override this? >=20 > > From: eleroy@msn.com > > To: user@zookeeper.apache.org > > Subject: advertised hostname vs IP > > Date: Tue=2C 8 Sep 2015 13:34:47 -0700 > >=20 > > Hello=2C > > I'm a bit confused about some config options in zk 3.5.0 alpha > > I set clientPort and clientPortAddress in zoo.cfg > > but after starting ZK these are gone from the zoo.cfgIt was my understa= nding that setting clientPortAddress allows to use IP to lookup nodes=2C in= stead of hostnames. > > but right now=2C without it=2C ZK nodes try to connect to each other by= using hostnames. > > Ideally I want to use IP not hostnames to lookup nodes=2C because i wan= t to be able to work without DNS or host defined in the hosts file. > > How do I achieve this? > > Thanks > >=20 > >=20 > >=20 > > =20 > =20 = --_4c597a33-62c3-4f32-89d0-bb1333ea4be7_--