getting Cassandra to listen to eth0 for port 9042

2015-03-08 Thread Jose Martinez
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 having is that I can only get port 9042 to listen to the

Re: getting Cassandra to listen to eth0 for port 9042

2015-03-08 Thread Ali Akhtar
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

Re: getting Cassandra to listen to eth0 for port 9042

2015-03-08 Thread Ali Akhtar
Other settings on AWS: rpc_address : 0.0.0.0 snitch: Ec2Snitch seeds, listen_address, broadcast_address: private ip On Mon, Mar 9, 2015 at 7:36 AM, Ali Akhtar ali.rac...@gmail.com wrote: On AWS, I've had to use the 'private IP' of the ec2 instance as the listen_address in order to get things

Re: getting Cassandra to listen to eth0 for port 9042

2015-03-08 Thread Jose Martinez
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:10.146.160.255   Mask:255.255.255.0 tcp        0      0 10.x.x.x:7000     0.0.0.0:*               LISTENtcp6       0      0 127.0.0.1:9042  

Re: getting Cassandra to listen to eth0 for port 9042

2015-03-08 Thread Jose Martinez
Ali, Your script (https://gist.github.com/aliakhtar/3649e412787034156cbb) worked.   Also, I notice what my problem was... didn't read the two lines above the listen_address property in the yaml file... # Please note that the address on which the native transport is bound is the# same as the

Re: Best way to alert/monitor nodetool status” down.

2015-03-08 Thread Vasileios Vlachos
We use Nagios for monitoring, and we call the following through NRPE: #!/bin/bash # Just for reference: # Nodetool's output represents Status ans State in this order. # Status values: U (up), D (down) # State values: N (normal), L (leaving), J (joining), M (moving) NODETOOL=$(which nodetool);