Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-15 Thread Brandon Williams
On Tue, May 15, 2012 at 12:53 AM, Ertio Lew ertio...@gmail.com wrote:
 @Brandon : I just created a jira issue to request this type of comparator
 along with Cassandra.

 It is about a UTF8 comparator that provides case insensitive ordering of
 columns.
 See issue here : https://issues.apache.org/jira/browse/CASSANDRA-4245

Nothing I said before does not stand, as far as I can tell.

-Brandon


How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Ertio Lew
I need to add a custom comparator to a cluster, to sort columns in a
certain customized fashion. How do I add the class to the cluster  ?


Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Kirk True
Disclaimer: I've never tried, but I'd imagine you can drop a JAR 
containing the class(es) into the lib directory and perform a rolling 
restart of the nodes.


On 5/14/12 11:11 AM, Ertio Lew wrote:
I need to add a custom comparator to a cluster, to sort columns in a 
certain customized fashion. How do I add the class to the cluster  ? 


Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Mohit Anchlia
That's right. Create class that implements the required interface and then
drop that jar in lib directory and start the cluster.

On Mon, May 14, 2012 at 11:41 AM, Kirk True k...@mustardgrain.com wrote:

 Disclaimer: I've never tried, but I'd imagine you can drop a JAR
 containing the class(es) into the lib directory and perform a rolling
 restart of the nodes.


 On 5/14/12 11:11 AM, Ertio Lew wrote:

 I need to add a custom comparator to a cluster, to sort columns in a
 certain customized fashion. How do I add the class to the cluster  ?




Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Tom Duffield (Mailing Lists)
Kirk is correct. 

-- 
Tom Duffield (Mailing Lists)
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Monday, May 14, 2012 at 1:41 PM, Kirk True wrote:

 Disclaimer: I've never tried, but I'd imagine you can drop a JAR 
 containing the class(es) into the lib directory and perform a rolling 
 restart of the nodes.
 
 On 5/14/12 11:11 AM, Ertio Lew wrote:
  I need to add a custom comparator to a cluster, to sort columns in a 
  certain customized fashion. How do I add the class to the cluster ? 
  
 
 
 




Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Ertio Lew
Can I put this comparator class in a separate new jar(with just this single
file) or is it to be appended to the original jar along with the other
comparator classes?

On Tue, May 15, 2012 at 12:22 AM, Tom Duffield (Mailing Lists) 
tom.duffield.li...@gmail.com wrote:

 Kirk is correct.

 --
 Tom Duffield (Mailing Lists)
 Sent with Sparrow http://www.sparrowmailapp.com/?sig

 On Monday, May 14, 2012 at 1:41 PM, Kirk True wrote:

 Disclaimer: I've never tried, but I'd imagine you can drop a JAR
 containing the class(es) into the lib directory and perform a rolling
 restart of the nodes.

 On 5/14/12 11:11 AM, Ertio Lew wrote:

 I need to add a custom comparator to a cluster, to sort columns in a
 certain customized fashion. How do I add the class to the cluster ?





Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Dave Brosius

it can be in a separate jar with just one class.

On 05/15/2012 12:29 AM, Ertio Lew wrote:
Can I put this comparator class in a separate new jar(with just this 
single file) or is it to be appended to the original jar along with 
the other comparator classes?


On Tue, May 15, 2012 at 12:22 AM, Tom Duffield (Mailing Lists) 
tom.duffield.li...@gmail.com mailto:tom.duffield.li...@gmail.com 
wrote:


Kirk is correct.

-- 
Tom Duffield (Mailing Lists)

Sent with Sparrow http://www.sparrowmailapp.com/?sig

On Monday, May 14, 2012 at 1:41 PM, Kirk True wrote:


Disclaimer: I've never tried, but I'd imagine you can drop a JAR
containing the class(es) into the lib directory and perform a
rolling
restart of the nodes.

On 5/14/12 11:11 AM, Ertio Lew wrote:

I need to add a custom comparator to a cluster, to sort columns
in a
certain customized fashion. How do I add the class to the cluster ?







Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Brandon Williams
On Mon, May 14, 2012 at 1:11 PM, Ertio Lew ertio...@gmail.com wrote:
 I need to add a custom comparator to a cluster, to sort columns in a certain
 customized fashion. How do I add the class to the cluster  ?

I highly recommend against doing this, because you'll be locked in to
your comparator and not have an easy way out.  I dare say if none of
the currently available comparators meet your needs, you're doing
something wrong.

-Brandon


Re: How do I add a custom comparator class to a cassandra cluster ?

2012-05-14 Thread Ertio Lew
@Brandon : I just created a jira issue to request this type of comparator
along with Cassandra.

It is about a UTF8 comparator that provides case insensitive ordering of
columns.
See issue here : https://issues.apache.org/jira/browse/CASSANDRA-4245

On Tue, May 15, 2012 at 11:14 AM, Brandon Williams dri...@gmail.com wrote:

 On Mon, May 14, 2012 at 1:11 PM, Ertio Lew ertio...@gmail.com wrote:
  I need to add a custom comparator to a cluster, to sort columns in a
 certain
  customized fashion. How do I add the class to the cluster  ?

 I highly recommend against doing this, because you'll be locked in to
 your comparator and not have an easy way out.  I dare say if none of
 the currently available comparators meet your needs, you're doing
 something wrong.

 -Brandon