Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 55468D07F for ; Wed, 29 Aug 2012 04:45:26 +0000 (UTC) Received: (qmail 31007 invoked by uid 500); 29 Aug 2012 04:45:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 30785 invoked by uid 500); 29 Aug 2012 04:45:23 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 30767 invoked by uid 99); 29 Aug 2012 04:45:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 04:45:22 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a51.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 04:45:17 +0000 Received: from homiemail-a51.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTP id 097782E805C for ; Tue, 28 Aug 2012 21:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :content-type:message-id:mime-version:subject:date:references:to :in-reply-to; s=thelastpickle.com; bh=PHLMCP2Rd26c5mfsssXakw7I3M 0=; b=0AZlbcpqzk/IEIjghdoSFwfCq/CMXiPzUooh34MWM5hF7ZBmLWwyTUNxUW UXhP6ZM25iiJ0fhRCdPh2agZmM7P5RZrrKdaD6JBCM4xxl2g4riAOj9YpxVKV0se 1H9rQBMpXDy2R2ZCu2+267JtP73u6rIT7eImLnfezT04Qb91A= Received: from [10.8.0.150] (unknown [72.28.97.147]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 6FEBD2E801C for ; Tue, 28 Aug 2012 21:44:55 -0700 (PDT) From: aaron morton Content-Type: multipart/alternative; boundary="Apple-Mail=_8352E5FE-3E41-4CB8-9C24-10DD0956E77B" Message-Id: <3B777F5F-1CA9-45BB-92D4-A807206F0DF0@thelastpickle.com> Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Subject: Re: can you use hostnames in the topology file? Date: Wed, 29 Aug 2012 16:44:45 +1200 References: To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1486) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_8352E5FE-3E41-4CB8-9C24-10DD0956E77B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii All host names are resolved to IP addresses.=20 > does the listen_address have to be hardwired to that same EXACT = hostname for lookup purposes as well? Not sure exactly what you mean here.=20 I think if you only supply the host name, and your DNS is set correctly = will work.=20 Hope that helps.=20 =20 ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 28/08/2012, at 5:00 AM, "Hiller, Dean" wrote: > In the example, I see all ips being used, but our machines are on dhcp = so I would prefer using hostnames for everything(plus if a machine goes = down, I can bring it back online on another machine with a different ip = but same hostname). >=20 > If I use hostname, does the listen_address have to be hardwired to = that same EXACT hostname for lookup purposes as well? Or will localhost = grab the hostname though it looks like it grabs the ip. >=20 > Thanks, > Dean --Apple-Mail=_8352E5FE-3E41-4CB8-9C24-10DD0956E77B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii All = host names are resolved to IP = addresses. 

 does = the listen_address have to be hardwired to that same EXACT hostname for = lookup purposes as well?
Not sure exactly what you mean = here. 
I think if you only supply the host name, and your = DNS is set correctly will work. 

Hope that = helps. 
 
http://www.thelastpickle.com

On 28/08/2012, at 5:00 AM, "Hiller, Dean" <Dean.Hiller@nrel.gov> = wrote:

In the example, I see all ips being used, but our machines = are on dhcp so I would prefer using hostnames for everything(plus if a = machine goes down, I can bring it back online on another machine with a = different ip but same hostname).

If I use hostname, does the = listen_address have to be hardwired to that same EXACT hostname for = lookup purposes as well?  Or will localhost grab the hostname = though it looks like it grabs the = ip.

Thanks,
Dean

= --Apple-Mail=_8352E5FE-3E41-4CB8-9C24-10DD0956E77B--