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 684889849 for ; Mon, 4 Jun 2012 09:58:56 +0000 (UTC) Received: (qmail 52661 invoked by uid 500); 4 Jun 2012 09:58:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 52536 invoked by uid 500); 4 Jun 2012 09:58:53 -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 52522 invoked by uid 99); 4 Jun 2012 09:58:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 09:58:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.44] (HELO mail-vb0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 09:58:48 +0000 Received: by vbbez10 with SMTP id ez10so2653302vbb.31 for ; Mon, 04 Jun 2012 02:58:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Bc9Ilrh2XsnjcWN/vit/MY+ua/Asvo95jjRjJxw9GXI=; b=ISeAUCLAnCKNGbvOWOphKYkTbXlCkgcljJVPGUpNDfRKhCBzs+axy2AmZDmGlouCEZ RAl4yRtxfd5f5LMpXcpZjdN84YJGKP/JT8KwPhvoPfjXDEcI8MpovfNYBszqGGcu04LS rierNRHCfisus6tb5wzNrtvwY7qtAb/Z63VYIYmCG2Y24NaHcJgOXQstpQn8IYaNG4yN CmCz8bY9Z+GxTAPlHZ0H6oOfuFmxb0Pspuh95w/wbp2XycDziBYv6atrwZQyEu2omcL9 n4AUITrDArSq6B/8uueyBBJ5KUEYO7q8Q/MNQIHopecfEP0BBUOV5uBbPPPpqK9O6eAh kweg== MIME-Version: 1.0 Received: by 10.220.154.130 with SMTP id o2mr11560501vcw.57.1338803906374; Mon, 04 Jun 2012 02:58:26 -0700 (PDT) Received: by 10.52.74.162 with HTTP; Mon, 4 Jun 2012 02:58:26 -0700 (PDT) In-Reply-To: <7073291669E5764EB68B5914AC4204744E04F3997F@AUSP01VMBX11.collaborationhost.net> References: <7073291669E5764EB68B5914AC4204744E04F39926@AUSP01VMBX11.collaborationhost.net> <7073291669E5764EB68B5914AC4204744E04F39938@AUSP01VMBX11.collaborationhost.net> <7073291669E5764EB68B5914AC4204744E04F3997F@AUSP01VMBX11.collaborationhost.net> Date: Mon, 4 Jun 2012 11:58:26 +0200 Message-ID: Subject: Re: Adding a new node to Cassandra cluster From: "R. Verlangen" To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d0435bfde436abe04c1a293eb X-Gm-Message-State: ALoCoQndxxZnfLlH/oO6PlmppfohgGZ03yVWCZoIwyqKouzvZtCPaBAOJqozkdUpP5PpMAXfYLEx X-Virus-Checked: Checked by ClamAV on apache.org --f46d0435bfde436abe04c1a293eb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Connection pooling involves things like: - (transparent) failover / retry - disposal of connections after X messages - keep track of connections Again: take a look at the hector connection pool. Source: https://github.com/rantav/hector/tree/master/core/src/main/java/me/prettypr= int/cassandra/connection 2012/6/4 Prakrati Agrawal > Ye I know I am trying to reinvent the wheel but I have to. The > requirement is such that I have to use Java Thrift API without any client > like Hector. Can you please tell me how do I do it.**** > > ** ** > > Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | > www.mu-sigma.com **** > > ** ** > > *From:* samal [mailto:samalgorai@gmail.com] > *Sent:* Monday, June 04, 2012 3:12 PM > > *To:* user@cassandra.apache.org > *Subject:* Re: Adding a new node to Cassandra cluster**** > > ** ** > > If you use thrift API, you have to maintain lot of low level code by > yourself which is already being polished by HLC hector, pycassa also wit= h > HLC your can easily switch between thrift and growing CQL.**** > > On Mon, Jun 4, 2012 at 3:00 PM, R. Verlangen wrote:**** > > You might consider using a higher level client (like Hector indeed). If > you don't want this you will have to write your own connection pool. For > start take a look at Hector. But keep in mind that you might be > reinventing the wheel.**** > > ** ** > > 2012/6/4 Prakrati Agrawal **** > > Hi,**** > > **** > > I am using Thrift API and I am not able to find anything on the internet > about how to configure it for multiple nodes. I am not using any proper > client like Hector.**** > > **** > > Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | > www.mu-sigma.com **** > > **** > > *From:* R. Verlangen [mailto:robin@us2.nl] > *Sent:* Monday, June 04, 2012 2:44 PM > *To:* user@cassandra.apache.org > *Subject:* Re: Adding a new node to Cassandra cluster**** > > **** > > Hi there,**** > > **** > > When you speak to one node it will internally redirect the request to the > proper node (local / external): but you won't be able to failover on a > crash of the localhost.**** > > For adding another node to the connection pool you should take a look at > the documentation of your java client.**** > > **** > > Good luck!**** > > **** > > 2012/6/4 Prakrati Agrawal **** > > Dear all**** > > **** > > I successfully added a new node to my cluster so now it=92s a 2 node > cluster. But how do I mention it in my Java code as when I am retrieving > data its retrieving only for one node that I am specifying in the > localhost. How do I specify more than one node in the localhost.**** > > **** > > Please help me**** > > **** > > Thanks and Regards**** > > **** > > Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | > www.mu-sigma.com **** > > **** > > **** > ------------------------------ > > This email message may contain proprietary, private and confidential > information. The information transmitted is intended only for the person(= s) > or entities 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 and delete the message from your system. > > Mu Sigma takes all reasonable steps to ensure that its electronic > communications are free from viruses. However, given Internet > accessibility, the Company cannot accept liability for any virus introduc= ed > by this e-mail or any attachment and you are advised to use up-to-date > virus checking software.**** > > > > **** > > **** > > -- > With kind regards,**** > > **** > > Robin Verlangen**** > > *Software engineer***** > > **** > > W www.robinverlangen.nl**** > > E robin@us2.nl**** > > **** > > Disclaimer: The information contained in this message and attachments is > intended solely for the attention and use of the named addressee and may = be > confidential. If you are not the intended recipient, you are reminded tha= t > the information remains the property of the sender. You must not use, > disclose, distribute, copy, print or rely on this e-mail. If you have > received this message in error, please contact the sender immediately and > irrevocably delete this message and any copies.**** > > **** > > ** ** > ------------------------------ > > This email message may contain proprietary, private and confidential > information. The information transmitted is intended only for the person(= s) > or entities 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 and delete the message from your system. > > Mu Sigma takes all reasonable steps to ensure that its electronic > communications are free from viruses. However, given Internet > accessibility, the Company cannot accept liability for any virus introduc= ed > by this e-mail or any attachment and you are advised to use up-to-date > virus checking software.**** > > > > **** > > ** ** > > -- > With kind regards,**** > > ** ** > > Robin Verlangen**** > > *Software engineer***** > > ** ** > > W www.robinverlangen.nl**** > > E robin@us2.nl**** > > ** ** > > Disclaimer: The information contained in this message and attachments is > intended solely for the attention and use of the named addressee and may = be > confidential. If you are not the intended recipient, you are reminded tha= t > the information remains the property of the sender. You must not use, > disclose, distribute, copy, print or rely on this e-mail. If you have > received this message in error, please contact the sender immediately and > irrevocably delete this message and any copies.**** > > ** ** > > ** ** > > ------------------------------ > This email message may contain proprietary, private and confidential > information. The information transmitted is intended only for the person(= s) > or entities 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 and delete the message from your system. > > Mu Sigma takes all reasonable steps to ensure that its electronic > communications are free from viruses. However, given Internet > accessibility, the Company cannot accept liability for any virus introduc= ed > by this e-mail or any attachment and you are advised to use up-to-date > virus checking software. > --=20 With kind regards, Robin Verlangen *Software engineer* * * W http://www.robinverlangen.nl E robin@us2.nl Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies. --f46d0435bfde436abe04c1a293eb Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Connection pooling involves things like:
- (transparent) failover / ret= ry
- disposal of connections after X messages
- keep tr= ack of connections


2012/6/4 Prakrati Agrawal <Prakrati.Agrawal@mu-sigma.com>

Ye I know I am trying to = reinvent the wheel but I have to. The requirement is such that I have to us= e Java Thrift API without any client like Hector. Can you please tell me how do I do it.

=A0<= /p>

Prakrati Agrawal | Develo= per - Big Data(I&D)| 9731648376 | www.mu-sigma.com

=A0<= /p>

From: samal [m= ailto:samalgorai@= gmail.com]
Sent: Monday, June 04, 2012 3:12 PM


To: u= ser@cassandra.apache.org
Subject: Re: Adding a new node to Cassandra cluster

=A0

If you use thrift API= , you have to maintain lot of low level code by yourself which is already b= eing polished by HLC=A0 hector, pycassa also with HLC your can easily switc= h between thrift and growing CQL.

On Mon, Jun 4, 2012 at 3:00 PM, R. Verlangen <robin@us2.nl> wrote:<= u>

You might consider using a higher level client (like= Hector indeed). If you don't want this you will have to write your own= connection pool. For start take a look at Hector. But keep in mind that yo= u might be reinventing=A0the wheel.

=A0

2012/6/4 Prakrati Agrawal <Prakrati.Agrawal@mu-sigma.com<= /a>>

Hi,<= /p>

=A0<= /p>

I am using Thrift API and= I am not able to find anything on the internet about how to configure it for multiple nodes. I am not using any proper client like Hector.

From: R. Verla= ngen [mailto:robin@us2.nl= ]
Sent: Monday, June 04, 2012 2:44 PM
To: u= ser@cassandra.apache.org
Subject: Re: Adding a new node to Cassandra cluster
=

=A0

Hi there,

=A0

When you speak to one node it will internally redire= ct the request to the proper node (local / external): but you won't be = able to failover on a crash of the localhost.

For adding another node to the connection pool you s= hould take a look at the documentation of your java client.

=A0

Good luck!

=A0

2012/6/4 Prakrati Agrawal <Prakrati.Agrawal@mu-sigma.com<= /a>>

=A0


This email message may contain proprietary, pri= vate and confidential information. The information transmitted is intended only for the person(s) or entities to which it is addressed. Any review, r= etransmission, dissemination or other use of, or taking of any action in re= liance upon, this information by persons or entities other than the intende= d recipient is prohibited and may be illegal. If you received this in error, please contact the sender and d= elete 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.



=A0

--
With kind regards,

=A0

Robin Verlangen

Software engineer

=A0

=A0

Disclaimer: The inform= ation contained in this message and attachments is intended solely for the = attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that= the information remains the property of the sender. You must not use, disc= lose, distribute, copy, print or rely on this e-mail. If you have received = this message in error, please contact the sender immediately and irrevocably delete this message and any copies.=

=A0

=A0


This email message may contain proprietary, pri= vate and confidential information. The information transmitted is intended = only for the person(s) or entities to which it is addressed. Any review, retransmission, dissemination or other use of, or taking of an= y action in reliance upon, this information by persons or entities other th= an the intended recipient is prohibited and may be illegal. If you received= this in error, please contact the sender and 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.



=A0

--
With kind regards,

=A0

Robin Verlangen

Software engineer

=A0

=A0

Disclaimer: The inform= ation contained in this message and attachments is intended solely for the = attention and use of the named addressee and may be confidential. If you ar= e not the intended recipient, you are reminded that the information remains the property of the sender. You must= not use, disclose, distribute, copy, print or rely on this e-mail. If you = have received this message in error, please contact the sender immediately = and irrevocably delete this message and any copies.

=A0

=A0



This email message may contain propriet= ary, private and confidential information. The information transmitted is i= ntended only for the person(s) or entities to which it is addressed. Any re= view, retransmission, dissemination or other use of, or taking of any action in reliance upon, this informatio= n by persons or entities other than the intended recipient is prohibited an= d may be illegal. If you received this in error, please contact the sender = and 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.



--
With kind re= gards,

Robin Verlangen
Software engineer

E robin@us2.nl

Disclaimer: The information= contained in this message and attachments is intended solely for the atten= tion and use of the named addressee and may be confidential. If you are not= the intended recipient, you are reminded that the information remains the = property of the sender. You must not use, disclose, distribute, copy, print= or rely on this e-mail. If you have received this message in error, please= contact the sender immediately and irrevocably delete this message and any= copies.

--f46d0435bfde436abe04c1a293eb--