Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 47117 invoked from network); 14 Apr 2011 20:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 20:22:52 -0000 Received: (qmail 26281 invoked by uid 500); 14 Apr 2011 20:22:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 26251 invoked by uid 500); 14 Apr 2011 20:22:50 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 26243 invoked by uid 99); 14 Apr 2011 20:22:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 20:22:50 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.33.216.122] (HELO hapkido.dreamhost.com) (66.33.216.122) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 20:22:42 +0000 Received: from homiemail-a45.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 662E217C4F7 for ; Thu, 14 Apr 2011 13:22:19 -0700 (PDT) Received: from homiemail-a45.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTP id 55F9C48021 for ; Thu, 14 Apr 2011 13:22:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=subject :mime-version:content-type:from:in-reply-to:date:message-id :references:to; q=dns; s=thelastpickle.com; b=GJHJFXs7MCNGF4dweW 1OQ9Ogi9T8vjJo1ilIWyRSMW7Z9HQxaD0BEppwx80pFNcZEeZeZITQoNKN1epJZg bp7PtUKNYYWFhJpGKnFiTyGyV03e3Ke7UzM+rhhi7UxWkU0z0gWA1DXJw1YTS+JL dxE6GNn+CzOYsQ9NN4NL7n2iQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= subject:mime-version:content-type:from:in-reply-to:date :message-id:references:to; s=thelastpickle.com; bh=ASwk33S5Hkfxb zF1xuEHHOPeb9w=; b=y4HhSg2eFqNVOxbcpXRuYJMm+7k7sP6dCS4Hp538DfxWB F5NfUzfiS8iopuK4u4sGLu1t8akRFa3fzpsj1beIAsCu57iIvmaDX60eplsjL770 YZBzW6bVPabqU0JqMR1qfVqqI4Zx8MooPqyoYgR/FSl3zF2RZU+i+oj+osjvck= Received: from [10.0.1.155] (121-73-157-230.cable.telstraclear.net [121.73.157.230]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTPSA id CFE9748055 for ; Thu, 14 Apr 2011 13:22:12 -0700 (PDT) Subject: Re: which nodes contain the data? column family as indexes? Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-31-235299427 From: aaron morton X-Priority: 3 In-Reply-To: Date: Fri, 15 Apr 2011 08:22:10 +1200 Message-Id: References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-31-235299427 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 By default all data for a keyspace, and it's CFs, are spread out over = all nodes in the cluster. If you want to see which endpoints have data for a particular key there = is an operation on the o.a.c.db.StorageService MBean you can use via = JConsole. Some (out of date) docs here may help = http://wiki.apache.org/cassandra/JmxInterface#org.apache.cassandra.service= .StorageService.Operations.getNaturalEndpoints Lots of articles here=20 http://wiki.apache.org/cassandra/ArticlesAndPresentations Aaron On 15 Apr 2011, at 04:32, tinhuty he wrote: > I just started 5 nodes in a cluster and set a replica factor of 3 on a = keyspace ks. My question is how do I know which 3 nodes will contain the = data of this keyspace(or particular column family in this keyspace)? > =20 > I often read that =93use a separate column family for storing our = indexes=94, here is link for = that(http://www.datastax.com/docs/0.7/data_model/cfs_as_indexes), but it = doesn=92t have more details. Could some one point me to more detailed = documentation and samples for this? > =20 > Thanks > =20 --Apple-Mail-31-235299427 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 http://wiki.apache= .org/cassandra/JmxInterface#org.apache.cassandra.service.StorageService.Op= erations.getNaturalEndpoints

Lots of = articles here 

Aaron


On 15 Apr 2011, at 04:32, = tinhuty he wrote:

I just started 5 nodes in a cluster and set = a replica=20 factor of 3 on a keyspace ks. My question is how do I know which 3 nodes = will=20 contain the data of this keyspace(or particular column family in this = keyspace)?=20
 
I often read that =93use a separate column = family for=20 storing our indexes=94, here is link for that(http:/= /www.datastax.com/docs/0.7/data_model/cfs_as_indexes),=20 but it doesn=92t have more details. Could some one point me to more = detailed=20 documentation and samples for this?
 
Thanks
 

= --Apple-Mail-31-235299427--