cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Martinez <>
Subject Re: getting Cassandra to listen to eth0 for port 9042
Date Mon, 09 Mar 2015 02:43:07 GMT
Yeah I used the private IP, which is the IP configured on eth0.  
...listen_address: 10.x.x.x

...ifconfig | grep inet          inet addr:10.x.x.x  Bcast:  Mask:
....tcp        0      0 10.x.x.x:7000*               LISTENtcp6
      0      0          :::*                    LISTEN
      From: Ali Akhtar <>
 To:; Jose Martinez <> 
 Sent: Sunday, March 8, 2015 10:36 PM
 Subject: Re: getting Cassandra 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.
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 . 

On Mon, Mar 9, 2015 at 7:24 AM, Jose Martinez <> wrote:

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 having is that I can only get port 9042
to listen to the loopback interface (  Regardless of what value I use for "listen_address:"
or "listen_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? thanks jose

View raw message