cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prakrati Agrawal <Prakrati.Agra...@mu-sigma.com>
Subject RE: Adding a new node to Cassandra cluster
Date Mon, 04 Jun 2012 09:48:29 GMT
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 with HLC your can easily switch between thrift
and growing CQL.
On Mon, Jun 4, 2012 at 3:00 PM, R. Verlangen <robin@us2.nl<mailto:robin@us2.nl>>
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 <Prakrati.Agrawal@mu-sigma.com<mailto:Prakrati.Agrawal@mu-sigma.com>>
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<http://www.mu-sigma.com>

From: R. Verlangen [mailto:robin@us2.nl<mailto:robin@us2.nl>]
Sent: Monday, June 04, 2012 2:44 PM
To: user@cassandra.apache.org<mailto: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 <Prakrati.Agrawal@mu-sigma.com<mailto:Prakrati.Agrawal@mu-sigma.com>>
Dear all

I successfully added a new node to my cluster so now it’s 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<http://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 introduced 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<http://www.robinverlangen.nl>
E robin@us2.nl<mailto: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.


________________________________
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 introduced 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<http://www.robinverlangen.nl>
E robin@us2.nl<mailto: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.



________________________________
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 introduced by this e-mail or any attachment and you are advised to use up-to-date
virus checking software.
Mime
View raw message