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 73B7B9F96 for ; Wed, 6 Jun 2012 06:12:51 +0000 (UTC) Received: (qmail 80447 invoked by uid 500); 6 Jun 2012 06:12:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 80427 invoked by uid 500); 6 Jun 2012 06:12:49 -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 80403 invoked by uid 99); 6 Jun 2012 06:12:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 06:12:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Roshni.Rajagopal@wal-mart.com designates 161.168.202.15 as permitted sender) Received: from [161.168.202.15] (HELO PPES-Mail-N1.wal-mart.com) (161.168.202.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 06:12:42 +0000 Received: from pps.filterd (PPES-Mail-N1 [127.0.0.1]) by PPES-Mail-N1.wal-mart.com (8.14.4/8.14.4) with SMTP id q566AhFk003652 for ; Wed, 6 Jun 2012 01:12:21 -0500 Received: from honts3515.homeoffice.wal-mart.com (walmart.com [161.168.202.1] (may be forged)) by PPES-Mail-N1.wal-mart.com with ESMTP id 15a1pgg0me-1 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 06 Jun 2012 01:12:21 -0500 Received: from DCNTS3700us.homeoffice.Wal-Mart.com (172.29.104.83) by HONTS3515.homeoffice.Wal-Mart.com (161.166.40.180) with Microsoft SMTP Server (TLS) id 8.3.192.1; Wed, 6 Jun 2012 01:12:21 -0500 Received: from DCNTS3000XCHUS.homeoffice.Wal-Mart.com ([172.29.104.75]) by DCNTS3700us.homeoffice.Wal-Mart.com ([172.29.104.83]) with mapi; Tue, 5 Jun 2012 23:12:13 -0700 From: Roshni Rajagopal To: "user@cassandra.apache.org" Date: Tue, 5 Jun 2012 23:12:22 -0700 Subject: Re: How to include two nodes in Java code using Hector Thread-Topic: How to include two nodes in Java code using Hector Thread-Index: Ac1Dq1AZyB7+S0MaQZumQEMPd75vxQ== Message-ID: In-Reply-To: <7073291669E5764EB68B5914AC4204744E05054635@AUSP01VMBX11.collaborationhost.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.10.0.110310 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7580,1.0.260,0.0.0000 definitions=2012-06-06_02:2012-05-21,2012-06-06,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org In Hector when you create a cluster using the API, you specify an IP addres= s & cluster name. Thereafter internally which node serves the request or ho= w many nodes need to be contacted to read/write data depends on the cluster= configuration i.e. Whats your replication strategy, factor, consistency le= vels for the col family , how many nodes are there in the ring etc. So you = don't individually need to connect to each node via Hector client. Once you= connect to the cluster & keyspace, via any IP add of any node in the clust= er, when you make Hector calls to read/write data, it would automatically f= igure out the node level details and carry out the task. You won't get 50% = of the data, you will get all data. Also when you remove a node, your data will be unavailable ONLY if you don'= t have it available in some other node as a replica.. Regards, From: Prakrati Agrawal > Reply-To: "user@cassandra.apache.org" > Date: Tue, 5 Jun 2012 20:05:21 -0700 To: "user@cassandra.apache.org" > Subject: RE: How to include two nodes in Java code using Hector But the data is distributed on the nodes ( meaning 50% of data is on one no= de and 50% of data is on another node) so I need to specify the node ip add= ress somewhere in the code. But where do I specify that is what I am cluele= ss about. Please help me Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | www.mu-sigma.com From: Harshvardhan Ojha [mailto:Harshvardhan.Ojha@makemytrip.com] Sent: Tuesday, June 05, 2012 5:51 PM To: user@cassandra.apache.org Subject: RE: How to include two nodes in Java code using Hector Use Consistency Level =3D2. Regards Harsh From: Prakrati Agrawal [mailto:Prakrati.Agrawal@mu-sigma.com] Sent: Tuesday, June 05, 2012 4:08 PM To: user@cassandra.apache.org Subject: How to include two nodes in Java code using Hector Dear all I am using a two node Cassandra cluster. How do I code in Java using Hector= to get data from both the nodes. Please help Thanks and Regards Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | www.mu-sigma.com= ________________________________ This email message may contain proprietary, private and confidential inform= ation. The information transmitted is intended only for the person(s) or en= tities to which it is addressed. Any review, retransmission, dissemination = or other use of, or taking of any action in reliance upon, this information= by persons or entities other than the intended recipient is prohibited and= may be illegal. If you received this in error, please contact the sender a= nd delete the message from your system. Mu Sigma takes all reasonable steps to ensure that its electronic communica= tions are free from viruses. However, given Internet accessibility, the Com= pany cannot accept liability for any virus introduced by this e-mail or any= attachment and you are advised to use up-to-date virus checking software. ________________________________ This email message may contain proprietary, private and confidential inform= ation. The information transmitted is intended only for the person(s) or en= tities to which it is addressed. Any review, retransmission, dissemination = or other use of, or taking of any action in reliance upon, this information= by persons or entities other than the intended recipient is prohibited and= may be illegal. If you received this in error, please contact the sender a= nd delete the message from your system. Mu Sigma takes all reasonable steps to ensure that its electronic communica= tions are free from viruses. However, given Internet accessibility, the Com= pany cannot accept liability for any virus introduced by this e-mail or any= attachment and you are advised to use up-to-date virus checking software. This email and any files transmitted with it are confidential and intended = solely for the individual or entity to whom they are addressed. If you have= received this email in error destroy it immediately. *** Walmart Confident= ial ***