Re: unsubscribe

2015-10-14 Thread Amila Paranawithana
unsubscribe On Wed, Oct 14, 2015 at 5:57 PM, Numan Fatih YARCI wrote: > unsubscribe > > -- *Amila Iroshani Paranawithana , **Senior Software Engineer* *, AdroitLogic * | ☎: +94779747398 | ✍: http://amilaparanawithana.blogspot.com [image: Facebook]

Re: sstable loader

2015-03-30 Thread Amila Paranawithana
eUnsortedWriter( >>> >>> directory,partitioner,keyspace,"test1",AsciiType.instance,null,64); >>> >>> >>> after compiling when we executed it with below command : >>> "java -cp /root/perl_work DataImportExample" >>> >

Re: Java Driver 2.1 reading counter values from row

2015-03-27 Thread Amila Paranawithana
Hi All, This is possible with cassandra-driver-core-2.1.5, with 'row.getLong("sum")'. Thanks On Fri, Mar 27, 2015 at 2:51 PM, Amila Paranawithana wrote: > in Apache Cassandra Java Driver 2.1 how to read counter type values from a > row when iterating over resul

Re: sstable loader

2015-03-27 Thread Amila Paranawithana
Hi, This post[1] may be useful. But note that this was done with cassandra older version. So there may be new way to do this. [1]. http://amilaparanawithana.blogspot.com/2012/06/bulk-loading-external-data-to-cassandra.html Thanks, On Fri, Mar 27, 2015 at 11:40 AM, Rahul Bhardwaj < rahul.bhard.

Java Driver 2.1 reading counter values from row

2015-03-27 Thread Amila Paranawithana
in Apache Cassandra Java Driver 2.1 how to read counter type values from a row when iterating over result set. eg: If I have a counter table called 'countertable' with key and a counter colum 'sum' how can I read the value of the counter column using Java driver? If I say, row.getInt("sum") this g

Re: Creating counter columns in cassandra

2012-07-31 Thread Amila Paranawithana
Hi all, Thanks all for the valuable feedback. I have a problem with running queries with Cqlsh. My query is SELECT * FROM rule1 WHERE sms=3; java.lang.NumberFormatException: An hex string representing bytes must have an even length at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:52) at org.

Re: Creating counter columns in cassandra

2012-07-28 Thread Amila Paranawithana
Thanks Tamar and all.. :) Since I want to do queries like SELECT * FROM counters WHERE CounterColumnName>1; I want to index my counter columns, and I use the following code. But I get the following error Exception in thread "main" me.prettyprint.hector.api.exceptions.HInvalidRequestException: Inval