incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Morris <michael.m.mor...@gmail.com>
Subject Re: Replica info
Date Thu, 09 May 2013 17:22:56 GMT
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 <kanwar@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:edlinuxguru@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.Hiller@nrel.gov> wrote:
> ****
>
> nodetool describering {keyspace}
>
>
> From: Kanwar Sangha <kanwar@mavenir.com<mailto:kanwar@mavenir.com>>
> Reply-To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <
> user@cassandra.apache.org<mailto:user@cassandra.apache.org>>
> Date: Wednesday, May 8, 2013 3:00 PM
> To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <
> user@cassandra.apache.org<mailto: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****
>
> ** **
>

Mime
View raw message