cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Hanna <jeremy.hanna1...@gmail.com>
Subject Re: PIG Cassandra - IPs of nodes in a ring
Date Tue, 10 May 2011 12:53:02 GMT
Anyone have any thoughts on this thread - about configuring cassandra with a different ip for
listen address and rpc address? 

moving this to the cassandra user list as it more involves cassandra configuration at this
point.

On May 10, 2011, at 12:58 AM, Badrinarayanan S wrote:

> Hi, after further digging, the issue is related to describe_ring function of
> Cassandra and more details are available at
> https://issues.apache.org/jira/browse/CASSANDRA-1777. So till it is resolved
> opting to have only public ips for both gossip and thrift.
> 
> 
> -----Original Message-----
> From: Jeremy Hanna [mailto:jeremy.hanna1234@gmail.com] 
> Sent: Saturday, May 07, 2011 1:36 AM
> To: user@pig.apache.org
> Subject: Re: PIG Cassandra - IPs of nodes in a ring
> 
> Hmmm - if that's the case, then you might try the cassandra user list or ask
> someone like driftx (brandon) in the #cassandra channel on IRC.  He might
> know what implications there are for that setup.
> 
> On May 6, 2011, at 1:13 PM, Badrinarayanan S wrote:
> 
>> Hi, I am running from one of the nodes in the cluster. 
>> 
>> I too believe it is something to do with different address for rpc_address
>> and listen_address but not sure what it is...
>> 
>> 
>> 
>> -----Original Message-----
>> From: Jeremy Hanna [mailto:jeremy.hanna1234@gmail.com] 
>> Sent: Friday, May 06, 2011 11:10 PM
>> To: user@pig.apache.org
>> Subject: Re: PIG Cassandra - IPs of nodes in a ring
>> 
>> Where are you running the pig script from - your local machine or one of
> the
>> nodes in the cluster or ?  I would think it wouldn't matter which address
>> you use, but what interface it's using.  So if the internal and public
>> address are both using the same interface, then you should be able to
>> connect to cassandra from your local machine using the public address.
>> That's what I do with EC2.  I use the internal address to connect when I'm
>> connecting within the region and the public address when I'm connecting
> from
>> my local machine.
>> 
>> I've never done a different address for rpc_address and listen_address for
>> that configuration, so there might be peculiarities there that I wouldn't
>> have seen.
>> 
>> On May 6, 2011, at 11:37 AM, Badrinarayanan S wrote:
>> 
>>> Hi,
>>> 
>>> 
>>> 
>>> I got a cluster with seven Cassandra nodes. The ring is formed using the
>>> private ips of each of the nodes. The rpc_address of the nodes is set to
>>> private and listen_address of the nodes set to public mainly to
> facilitate
>>> cross data centre ring. When I ring the nodes, it shows all nodes are up
>>> pointing to private ip.
>>> 
>>> 
>>> 
>>> However when I setup Hadoop/PIG and try to run a PIG script, I get an
>>> exception like java.io.IOException: failed connecting to all endpoints
>>> <ip1>, <ip2>. The ip1 and ip2 are the public ips of nodes part of
the
>> ring. 
>>> 
>>> 
>>> 
>>> Any suggestion on why it is looking for public ip when the rpc_addr of
>> nodes
>>> and ring is pointing to private ips.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> badri
>>> 
>>> 
>>> 
>> 
> 


Mime
View raw message