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 1F64117398 for ; Mon, 9 Mar 2015 02:48:33 +0000 (UTC) Received: (qmail 12320 invoked by uid 500); 9 Mar 2015 02:48:29 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 12277 invoked by uid 500); 9 Mar 2015 02:48:29 -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 12264 invoked by uid 99); 9 Mar 2015 02:48:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 02:48:29 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jmartine_1026@yahoo.com designates 98.138.121.128 as permitted sender) Received: from [98.138.121.128] (HELO nm49-vm0.bullet.mail.ne1.yahoo.com) (98.138.121.128) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 02:47:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425869277; bh=pj88q4r4epUvllJCHpmACDr/DUtqKWea1jao9luWVJc=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=hvUcxv5QbT5vOTTRkO3QXaJcAXnusU1Y2eXlQg8CtrwWz6nbhpC1bYe+B5ralcYEj2QDJTNzaMQpZ2yUqjS6Q2feJ16E8+celc+kR3kdvCVoKl4tfzO6hus+WYc/aVS48RqxMhtNLhBagl2yh070L+n7Rosils3Ca7iuyGTbOHoWrPu7h6nI+LmkvaD5IRbKdIuXn/ExHv2S0f8lz73O4kiWLyD69EXjxYNS8IMqVsoKklclOo2h1E3GEAoOx1w26pMDGHkh+7HYGXeTGxTz7cNV3W/oKKZG6jJrjQof9j81vI3B85iqK38VZvXMNYUwLBZyIZjIHxJB2xVlS527Bg== Received: from [127.0.0.1] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 09 Mar 2015 02:47:57 -0000 Received: from [98.138.100.115] by nm49.bullet.mail.ne1.yahoo.com with NNFMP; 09 Mar 2015 02:43:43 -0000 Received: from [98.139.215.142] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 09 Mar 2015 02:43:08 -0000 Received: from [98.139.212.217] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 09 Mar 2015 02:43:08 -0000 Received: from [127.0.0.1] by omp1026.mail.bf1.yahoo.com with NNFMP; 09 Mar 2015 02:43:08 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 276153.94600.bm@omp1026.mail.bf1.yahoo.com X-YMail-OSG: PqRKgOIVM1majoumH32pzOO1m0Tt2VK83iYD5jP9rpNn9OxvtPi.AjurMXBHeac dbUhQLo_Q4sK6PGqdZxE4QcH3w8ozLKpz1tu1egnQhtmvbGJsajBbkH0oFYL6pTaqb2PX4l_3YD6 dX2p9ie7KNyv23KTkvBw2fsknUBx9WzVuIHqAQ_6_wIZZ3nugLqTjJSqKYRLHafj0w1DAz0BUZky IBem1CCB3jokxV_FkT2WHr3yaSL_jZ_8Hhs30WPD0d05mXHbqExP4VOa2W6os_RU2N0Mk8QPRZPQ FklguCvPbpvpsIM8Q.U2HRnlH01dMPmT6_XXRuMxAYv4H.41veNlEygg3ylMyFD6_kGxn2zHfx1t EmNxDDhJkk_xFmhq9R9fwz0mZPqY4gvKJ1IgmcvCgvn30wPy_3I9uEQIVkXm7FInfG5mjWNKDhm8 vnnqoHzY4r81c7.noZAAhaIP6Cp2_3rnmWguKrAq53XhPNtNaqDQGLBaY.3hgFsj58LJYBHVrNFX h44QEiH8KOj3ne_u2g7h_Cm.Ddlb0WxmwOvAUegKwQvk3Sd8qERJi9hlW0G4HbLlqhWYr8SgD.SP dLQIBsTYpVv6v2ZIhOcdj8xNLdvA- Received: by 66.196.81.115; Mon, 09 Mar 2015 02:43:07 +0000 Date: Mon, 9 Mar 2015 02:43:07 +0000 (UTC) From: Jose Martinez Reply-To: Jose Martinez To: Ali Akhtar , "user@cassandra.apache.org" Message-ID: <1151147714.1107966.1425868987425.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: getting Cassandra to listen to eth0 for port 9042 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1107965_696036122.1425868987416" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1107965_696036122.1425868987416 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yeah I used the private IP, which is the IP configured on eth0. =C2=A0 ...listen_address: 10.x.x.x ...ifconfig | grep inet=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 inet addr:10.x.x.= x =C2=A0Bcast:10.146.160.255 =C2=A0Mask:255.255.255.0 ....tcp =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A00 10.x.x.x:7000 = =C2=A0 =C2=A0 0.0.0.0:* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 LI= STENtcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 127.0.0.1:9042 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0:::* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0LISTEN =C2=A0jose From: Ali Akhtar To: user@cassandra.apache.org; Jose Martinez =20 Sent: Sunday, March 8, 2015 10:36 PM Subject: Re: getting Cassandra to listen to eth0 for port 9042 =20 On AWS, I've had to use the 'private IP' of the ec2 instance as the listen_= address in order to get things to work. In your EC2 dashboard, there will be a private ip as well as public ip for = the instance. Try using the private ip for the listen_address. Also, you might have more luck installing via one of the packages than via = the tar.gz .=C2=A0 On Mon, Mar 9, 2015 at 7:24 AM, Jose Martinez wrote: Hello, I installed version=C2=A02.1.3 on my AWS EC2.=C2=A0 I installed by download= ing the tar and copying it to /opt/ dir and then just ran the bin/cassandra= executable.=C2=A0 I am trying to access this instance from a Java client.= =C2=A0 But the problem I am having is that I can only get port 9042 to list= en to the loopback interface (127.0.0.1).=C2=A0 Regardless of what value I = use for "listen_address:" or "listen_interface:".=C2=A0 It seems like those= properties do not affect port 9042, only port 7000 I think.=C2=A0 Is there= anyway I can get Cassandra to listen on the interface I want for port 9042= ?=C2=A0thanks=C2=A0jose ------=_Part_1107965_696036122.1425868987416 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yeah I used the private IP, which= is the IP configured on eth0.  

...
listen_address: 10.x.x.x

...
ifco= nfig | grep inet
          inet addr:10.x.x.x  B= cast:10.146.160.255  Mask:255.255.255.0

....
tcp        0 &nbs= p;    0 10.x.x.x:7000     0.0.0.0:*      = ;         LISTEN
tcp6       0 &= nbsp;    0 127.0.0.1:9042          :::* =                    LISTEN=
 
jose


From: Ali Akhtar <ali.rac200@gmail.c= om>
To: user@cassan= dra.apache.org; Jose Martinez <jmartx@yahoo.com>
Sent: Sunday, March 8, 2015 10:36 PM
= Subject: Re: getting Cass= andra to listen to eth0 for port 9042

On AWS, I've had to use the 'private IP'= of the ec2 instance as the listen_address in order to get things to work.<= div id=3D"yui_3_16_0_1_1425865983012_18765">
In your EC2 dashboard, there will be= a private ip as well as public ip for the instance. Try using the private = ip for the listen_address.

Als= o, you might have more luck installing via one of the packages than via the= tar.gz . 



On Mon, Mar 9, 2015 at 7:24 AM, Jose Martinez <jmartx@yahoo.co= m> wrote:
Hello,

I installed version 2.1.3= on my AWS EC2.  I installed by downloading the tar and copying it to = /opt/ dir and then just ran the bin/cassandra executable.  I am trying= to access this instance from a Java client.  But the problem I am hav= ing is that I can only get port 9042 to listen to the loopback interface (1= 27.0.0.1).  Regardless of what value I use for "listen_address:" or "l= isten_interface:".  It seems like those properties do not affect port = 9042, only port 7000 I think.  Is there anyway I can get Cassandra to = listen on the interface I want for port 9042?
 <= /div>
thanks 
jose

=

------=_Part_1107965_696036122.1425868987416--