Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BDC88200AF8 for ; Thu, 5 May 2016 11:40:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC5BC160A03; Thu, 5 May 2016 09:40:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F853160A02 for ; Thu, 5 May 2016 11:40:28 +0200 (CEST) Received: (qmail 50942 invoked by uid 500); 5 May 2016 09:40:27 -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 50932 invoked by uid 99); 5 May 2016 09:40:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 09:40:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 225E5C3BEF for ; Thu, 5 May 2016 09:40:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UOCb3tZ6Gr1d for ; Thu, 5 May 2016 09:40:25 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 3796A5F1C6 for ; Thu, 5 May 2016 09:40:24 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id n10so33751103obb.2 for ; Thu, 05 May 2016 02:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=Esx+rcP/xhmZ6a6EkTpV+zy1PfWRODtKp+xxdRLIeAA=; b=hLHNXcUxvpEboF5n4J0iQreWZo4QnnkVKnRHtVCOdi6OdRL4jPqMTAqtoWFtMh366w 08SLR5Di8Ix6wPUBTpBt3NSz8up+j/TlhfjFjvoOY/Wm8Gp1fU6JDigSLI6EpTEjS1CM OAGJLdnjQYZ53Fo56LkTD5JKUdgH4lQKXAzjMPFTks8gg5xwYoYstQwcBv3Y/iIjC7rP BX8uOSPV8+Qn1huNJ/+likr3Y/7bysIpsTVdWJxrHAEn1hzzWBUbvzMf7XSkorUba1Vo d3LjbYbU0Fy3iej4SzbCGN9DMI5vriwvVLILJ8X07rNmyFN2gBiX9V7kns03Fm8vVhfp PRaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=Esx+rcP/xhmZ6a6EkTpV+zy1PfWRODtKp+xxdRLIeAA=; b=jM43sY8EfnQlLI/WrLW6qiKowIxMsPCBSwDwIY4AtkoY/++WFlwi7gfqPfxLGEUcPf rQSEhrQrM6U9FBkX4z6ZEX1X+s0kI0+ABSmwVhBNV9wxKRr/pXQJ6W+gqeYxfEjCPFp8 LeOwMHp+Wzb9YidmYz0dU/Vc7pP1NPYvdYVIHbTvFbk+7kn2LjHZANjjVshJEvbwHied quovd8ov9j16LHj1FWC5DkWYBp00ZBLDY6lfw57cA8v9Vsd7FB93dU2ig8MOAtCOFfcD nHGZZeNdcckj5tlYVi+APKNK2yZ+xzTcRpj+r7+iMkze03ZwtvrqrV3LsDfGqe5vZ3nq 0/rA== X-Gm-Message-State: AOPr4FUKSpVhiLC+AKSCAnV6sJ49OSiG3vmJYIaSBiOApQDqygRRHlw0ODaWunfXmcONbd85QeJhzU0SsvTK1Q== MIME-Version: 1.0 X-Received: by 10.182.122.41 with SMTP id lp9mr6245428obb.16.1462441217011; Thu, 05 May 2016 02:40:17 -0700 (PDT) Received: by 10.157.46.109 with HTTP; Thu, 5 May 2016 02:40:16 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 May 2016 17:40:16 +0800 Message-ID: Subject: Re: Read data from specific node in cassandra From: Varun Barala To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=bcaec53968563eb3ec05321521f3 archived-at: Thu, 05 May 2016 09:40:29 -0000 --bcaec53968563eb3ec05321521f3 Content-Type: text/plain; charset=UTF-8 Hi Siddharth Verma, You can define consistency level LOCAL_ONE. and you can applyh consistency level during statement creation. like this -> statement.setConsistencyLevel(ConsistencyLevel.LOCAL_ONE); On Thu, May 5, 2016 at 3:55 PM, Siddharth Verma < verma.siddharth@snapdeal.com> wrote: > Hi, > We have a 3 node cluster in DC1, where replication factor of keyspace is 3. > How can i read data only from one particular node in java driver? > > Thanks, > Siddharth Verma > --bcaec53968563eb3ec05321521f3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Siddharth Verma,

You can define consistency leve= l LOCAL_ONE.

and you can applyh consistency level during statement c= reation.

like this -> statement.setConsistencyLevel(ConsistencyLe= vel.LOCAL_ONE);

On Thu, May 5, 2016 at 3:55 PM, Siddharth Verma <<= a href=3D"mailto:verma.siddharth@snapdeal.com" target=3D"_blank">verma.sidd= harth@snapdeal.com> wrote:
=
Hi,
We have a 3 node cluster = in DC1, where replication factor of keyspace is 3.
How can i read = data only from one particular node in java driver?

Thanks,
Siddharth Verma

--bcaec53968563eb3ec05321521f3--