From user-return-30567-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Tue Dec 11 22:05:09 2012 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 5523DD5E4 for ; Tue, 11 Dec 2012 22:05:09 +0000 (UTC) Received: (qmail 80875 invoked by uid 500); 11 Dec 2012 22:05:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 80849 invoked by uid 500); 11 Dec 2012 22:05:06 -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 80840 invoked by uid 99); 11 Dec 2012 22:05:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 22:05:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=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-a48.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 22:05:00 +0000 Received: from homiemail-a48.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTP id 840EE4F806B for ; Tue, 11 Dec 2012 14:04:40 -0800 (PST) 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=Wu6jg6cexuYNNWUYbXYiNSvDoM I=; b=UANt/+oIXSX12dlKFEoHOqh/3SE91jehmO/IXqKeEwO4znauM6/kQFV3sE hdjyc6Qt0H5fIrH7sdj5mJYYMZApqetnFXvEQyg0AzyQhFgSe73VVkrSPUUhhyeo XkhF3dHIfw+3pEdWhB1oaLT0kexd+eDjdmG47kiUGr2t67G+0= Received: from [172.16.1.7] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTPSA id DF7BE4F8074 for ; Tue, 11 Dec 2012 14:04:39 -0800 (PST) From: aaron morton Content-Type: multipart/alternative; boundary="Apple-Mail=_2D6A165C-ADC8-442C-90A1-3A8CF78ED971" Message-Id: <54C00DCA-A1FD-48AD-B90A-2251373465D0@thelastpickle.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Cassandra on EC2 - describe_ring() is giving private IPs Date: Wed, 12 Dec 2012 11:04:39 +1300 References: To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_2D6A165C-ADC8-442C-90A1-3A8CF78ED971 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > Though I configured the listen_address with public dns, still I had = the same issue.=20 Internally the public DNS resolves to the private IP.=20 > looks like describe_ring() is the one which provides the details.=20 describe_ring() returns includes the registered RPC addresses for the = nodes. Trying setting the rpc_address to the public IP. Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 11/12/2012, at 11:32 PM, santi kumar wrote: > We have a 4 node cluster in us-east region in two different AZ's. = Clients connect to this cluster from our datacenter which is not on AWS.=20= >=20 > Hector clients are initialized with public DNS names, then = listern_address is with private ip and rpc_address is with 0.0.0.0.=20 >=20 > Having issues with Node Auto Discovery by Hector. When it's trying to = discover the ring, the end points are initialized with private IP's for = all Token Ranges. It checks with the existing hosts (which are = initialized public DNS) and thinks that there is a new node got added to = the cluster.=20 >=20 > looks like describe_ring() is the one which provides the details. = Though I configured the listen_address with public dns, still I had the = same issue.=20 >=20 > Any idea, what is the best way to configure for EC2. Have gone through = the link=20 > = https://docs.google.com/document/d/175duUNIx7m5mCDa2sjXVI04ekyMa5bdiWdu-AF= gisaY/edit?hl=3Den >=20 > But not sure whether it's fixed in 1.1.4. When I run the nodetool = ring, it gives the private ips. But in the above doc, it shows the = public IPs as part of nodetool ring.=20 >=20 > Some insight into this is really helpful. >=20 > Thanks > Santi --Apple-Mail=_2D6A165C-ADC8-442C-90A1-3A8CF78ED971 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Though I configured the listen_address with = public dns, still I had the same issue. Internally the = public DNS resolves to the private = IP. 

looks like = describe_ring() is the one which provides the = details. 
describe_ring() returns includes the = registered RPC addresses for the nodes. Trying setting the rpc_address = to the public IP.

Cheers

http://www.thelastpickle.com

On 11/12/2012, at 11:32 PM, santi kumar <santi.kumar@gmail.com> = wrote:

We have a 4 node cluster in us-east region in two = different AZ's.=20 Clients connect to this cluster from our datacenter which is not on AWS.

Hector clients are initialized with public DNS names, then = listern_address is with private ip and rpc_address is with 0.0.0.0.

Having issues with Node Auto Discovery by Hector. When it's=20 trying to discover the ring, the end points are initialized with private IP's for all Token Ranges. It checks with the existing hosts (which are initialized public DNS) and thinks that there is a new node got added=20= to the cluster.=20

looks like describe_ring() is the one which provides the=20 details. Though I configured the listen_address with public dns, still I had the same issue.

Any idea, what is the best way to configure for EC2. Have gone = through the link
https://docs.google.com/document/d/175duUNIx7m5mCDa2sjXVI= 04ekyMa5bdiWdu-AFgisaY/edit?hl=3Den

But not sure whether it's fixed in 1.1.4. When I run the nodetool ring, it=20= gives the private ips. But in the above doc, it shows the public IPs as=20= part of nodetool ring.=20

Some insight into this is really = helpful.

Thanks
Santi

= --Apple-Mail=_2D6A165C-ADC8-442C-90A1-3A8CF78ED971--