Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CFEC4869 for ; Mon, 6 Jun 2011 06:50:42 +0000 (UTC) Received: (qmail 81065 invoked by uid 500); 6 Jun 2011 06:50:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81035 invoked by uid 500); 6 Jun 2011 06:50:37 -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 81024 invoked by uid 99); 6 Jun 2011 06:50:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 06:50:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of watanabe.maki@gmail.com designates 209.85.210.44 as permitted sender) Received: from [209.85.210.44] (HELO mail-pz0-f44.google.com) (209.85.210.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 06:50:28 +0000 Received: by pzk5 with SMTP id 5so1886879pzk.31 for ; Sun, 05 Jun 2011 23:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=20KneRE67ypaiKKENlvW3tWDjcDSBdKSApXAYvFs6qY=; b=cj/dF1QQiL4QjquVrtTmIr4kWkNseod2ObnGp0EW8foO3IEVbW2Hq73cZyyrexd4G6 9LJy+0wgInErlOgSgSBWw0MYfcjkivEfLpZStuODuGyNl5dWEMLJ2fbtpWtr9hd1Q12v ihrdn4a2+o2VUUVHxwN3Y00HHIJNr0n/geIBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=rKbn8MOyCvOnBNX/lVONEgaXaR3vyFsPNeQ19oNTXAOuF0xdtGIfy+Ouqb12gNUyPH uPcrID42Iw49gXBOuTLyUMEeGbwTgtrDUloanrLLakRx9cRqiQG0KF2wx+yCsXwjwggD Y3zV/yWHrIzXlhvJ0x4Eb5TCRJgs6GHrllrkw= Received: by 10.68.22.201 with SMTP id g9mr1797707pbf.283.1307343007769; Sun, 05 Jun 2011 23:50:07 -0700 (PDT) Received: from [126.253.7.11] (pw126253007011.13.tss.panda-world.ne.jp [126.253.7.11]) by mx.google.com with ESMTPS id y2sm3469986pbg.56.2011.06.05.23.50.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Jun 2011 23:50:06 -0700 (PDT) References: <1307297826627-6442802.post@n2.nabble.com> <1307321082377-6443571.post@n2.nabble.com> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8G4) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <3C42E381-60D4-411B-801E-BEAA3A85869F@gmail.com> Cc: "user@cassandra.apache.org" X-Mailer: iPhone Mail (8G4) From: Watanabe Maki Subject: Re: Direct control over where data is stored? Date: Mon, 6 Jun 2011 15:50:04 +0900 To: "user@cassandra.apache.org" You can know endpoints which cassandra will store your key to with getNatura= lEndpoints, but you can't specify endpoint you want to use with this API. Partitioner decides which key will go to which node. With OPP, you may be ab= le to predicate which key range will be stored to a node, so you can choose a= ny key in the range for your user data A to store it in a specific node.=20 But you can not choose node you want for any specified keys. You need to cho= ose appropriate key to store data for your target node. =46rom iPhone On 2011/06/06, at 13:06, Khanh Nguyen wrote: > On Sun, Jun 5, 2011 at 11:26 PM, Maki Watanabe w= rote: >> getNaturalEndpoints tells you which key will be stored on which nodes, >> but we can't force cassandra to store given key to specific nodes. >>=20 >> maki >=20 > I'm confused. Didn't you mention previously that I can use > OrderPreservingPartitioner to store data to specific nodes? Thanks. >=20 > -k