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 0F10511235 for ; Wed, 25 Jun 2014 05:01:36 +0000 (UTC) Received: (qmail 63112 invoked by uid 500); 25 Jun 2014 05:01:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 63075 invoked by uid 500); 25 Jun 2014 05:01:32 -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 63065 invoked by uid 99); 25 Jun 2014 05:01:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 05:01:32 +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 zhlntu@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 05:01:29 +0000 Received: by mail-wi0-f179.google.com with SMTP id cc10so1767068wib.0 for ; Tue, 24 Jun 2014 22:01:05 -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=Cx0B4gXAf+/AIWmp8a4UIYFYqVi/AvR5q5ujW7p4Rvk=; b=DMgN1lWI3eNpmosK8SWY2CNqszzZahgq7lLyNmmAFT+LLAxxTEXAu9cPPEonw601nP LtflRlhiXWissv7L4xZSLu9noLZ/TufmIOTCmPrd4TydbwwYXGODt53isBO0nwJx3uaN hvwMSLnTmevea0f2+vFBDWLRTxiqk2k/0wDetXJ9W6HU2TDxDmsRRVPMnD5gUEVBth2d hzIihsvQzXR6bF79SP1pbN1i/ytv0uGfxnD0pHod8q4ColBOnfKg485IVUDVwvyjPqq5 pd6198Jr41zPiXO90m2h+T5dwa0gX/QRNSfgwJkpWyBlUQioOX4qbrE/nsgJRUSZqNop IGxw== MIME-Version: 1.0 X-Received: by 10.194.92.115 with SMTP id cl19mr6643850wjb.29.1403672465257; Tue, 24 Jun 2014 22:01:05 -0700 (PDT) Received: by 10.194.119.72 with HTTP; Tue, 24 Jun 2014 22:01:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Jun 2014 22:01:05 -0700 Message-ID: Subject: Re: EC2 cassandra cluster node address problem From: Huiliang Zhang To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bfcf88eac3a3b04fca1f6a1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bfcf88eac3a3b04fca1f6a1 Content-Type: text/plain; charset=UTF-8 Thanks. Is there a way to configure Cassandra to use elastic ip instead of private ip? On Tue, Jun 24, 2014 at 9:29 PM, Andrey Ilinykh wrote: > Cassandra knows nothing about elastic ip. You have to use ssh tunnel or > run your client on ec2 instance. > > Thank you, > Andrey > > > On Tue, Jun 24, 2014 at 8:55 PM, Huiliang Zhang wrote: > >> Hi, >> >> I am using Cassandra on EC2 instances. My cassandra always returns >> private ips of the instances to the thrift program. Then the program cannot >> connect to the private ips. >> >> I already changed the >> rpc_address: elastic ip >> rpc_address: elastic ip >> >> Then I restarted the cassandra cluster. But the system.peers still save >> the private ips as peer address. >> >> How to fix this? >> >> Thanks, >> Huiliang >> >> > --047d7bfcf88eac3a3b04fca1f6a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks. Is there a way to configure Cassandra to use elast= ic ip instead of private ip?


On Tue, Jun 24, 2014 at 9:29 PM, Andrey Ilinykh <ailinykh@gmail.com> wrote:
Cassandra knows nothing abo= ut elastic ip. You have to use ssh tunnel or run your client on ec2 instanc= e.

Thank you,
=C2=A0 Andrey


On Tue, Jun 24, 2014 at 8:55 PM, Huiliang Zhang <zhlntu@gmail.com> wrote:
Hi,

I am using = Cassandra on EC2 instances. My cassandra always returns private ips of the = instances to the thrift program. Then the program cannot connect to the pri= vate ips.

I already changed the
rpc_address: elastic ip
rpc_address:= elastic ip

Then I restarted the cassandra cluster. But the sy= stem.peers still save the private ips as peer address.

How to= fix this?

Thanks,
Huiliang

<= /div>


--047d7bfcf88eac3a3b04fca1f6a1--