RE: Replica info
Thanks ! Is there also a way to find out the replica nodes ? Say we have 2 DCs, DC1 and DC2 with RF=2 (DC1:1, DC2:1) Can we find out which node in DC2 is a replica ? From: Edward Capriolo [mailto:edlinuxg...@gmail.com] Sent: 08 May 2013 21:08 To: user@cassandra.apache.org Subject: Re: Replica info http://www.datastax.com/docs/1.1/references/nodetool#nodetool-getendpoints This tells you where a key lives. (you need to hex encode the key) On Wed, May 8, 2013 at 5:14 PM, Hiller, Dean dean.hil...@nrel.govmailto:dean.hil...@nrel.gov wrote: nodetool describering {keyspace} From: Kanwar Sangha kan...@mavenir.commailto:kan...@mavenir.commailto:kan...@mavenir.commailto:kan...@mavenir.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Wednesday, May 8, 2013 3:00 PM To: user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Replica info Is there a way in Cassandra that we can know which node has the replica for the data ? if we have 4 nodes and RF = 2, is there a way we can find which 2 nodes have the same data ? Thanks, Kanwar
Re: Replica info
Not directly, but you should be able to use the output of the getendpoints operation, and of nodetool ring to find the IP address that matches the DC you are looking for. Thanks, Mike On Thu, May 9, 2013 at 11:08 AM, Kanwar Sangha kan...@mavenir.com wrote: Thanks ! Is there also a way to find out the replica nodes ? ** ** Say we have 2 DCs, DC1 and DC2 with RF=2 (DC1:1, DC2:1) ** ** Can we find out which node in DC2 is a replica ? ** ** ** ** ** ** *From:* Edward Capriolo [mailto:edlinuxg...@gmail.com] *Sent:* 08 May 2013 21:08 *To:* user@cassandra.apache.org *Subject:* Re: Replica info ** ** http://www.datastax.com/docs/1.1/references/nodetool#nodetool-getendpoints This tells you where a key lives. (you need to hex encode the key) ** ** On Wed, May 8, 2013 at 5:14 PM, Hiller, Dean dean.hil...@nrel.gov wrote: nodetool describering {keyspace} From: Kanwar Sangha kan...@mavenir.commailto:kan...@mavenir.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Wednesday, May 8, 2013 3:00 PM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Replica info Is there a way in Cassandra that we can know which node has the replica for the data ? if we have 4 nodes and RF = 2, is there a way we can find which 2 nodes have the same data ? Thanks, Kanwar ** **
Re: Replica info
nodetool describering {keyspace} From: Kanwar Sangha kan...@mavenir.commailto:kan...@mavenir.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Wednesday, May 8, 2013 3:00 PM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Replica info Is there a way in Cassandra that we can know which node has the replica for the data ? if we have 4 nodes and RF = 2, is there a way we can find which 2 nodes have the same data ? Thanks, Kanwar
Re: Replica info
You also might be interested in nodetool getendpoints keyspace cf key, which prints the nodes that are replicas for a given key On Wed, May 8, 2013 at 4:14 PM, Hiller, Dean dean.hil...@nrel.gov wrote: nodetool describering {keyspace} From: Kanwar Sangha kan...@mavenir.commailto:kan...@mavenir.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Wednesday, May 8, 2013 3:00 PM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Replica info Is there a way in Cassandra that we can know which node has the replica for the data ? if we have 4 nodes and RF = 2, is there a way we can find which 2 nodes have the same data ? Thanks, Kanwar -- Tyler Hobbs DataStax http://datastax.com/
Re: Replica info
http://www.datastax.com/docs/1.1/references/nodetool#nodetool-getendpoints This tells you where a key lives. (you need to hex encode the key) On Wed, May 8, 2013 at 5:14 PM, Hiller, Dean dean.hil...@nrel.gov wrote: nodetool describering {keyspace} From: Kanwar Sangha kan...@mavenir.commailto:kan...@mavenir.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Date: Wednesday, May 8, 2013 3:00 PM To: user@cassandra.apache.orgmailto:user@cassandra.apache.org user@cassandra.apache.orgmailto:user@cassandra.apache.org Subject: Replica info Is there a way in Cassandra that we can know which node has the replica for the data ? if we have 4 nodes and RF = 2, is there a way we can find which 2 nodes have the same data ? Thanks, Kanwar