Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-15 Thread ashish sanadhya
Hey vivek ,thanks for your help. On Fri, Oct 11, 2013 at 4:47 PM, Vivek Mishra mishra.v...@gmail.com wrote: Change key_validation_class to UTF8Type and usersWriter.newRow(ByteBufferUtil.bytes(String.valueOf(lineNumber))); On Fri, Oct 11, 2013 at 4:42 PM, ashish sanadhya

Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread ashish sanadhya
I have done with bulk loader with key_validation_class=LexicalUUIDType for new row with the help of this [code][1] but i have changed my **key_validation_class=AsciiType** in order to make **string as row keys** create column family Users1 with key_validation_class=AsciiType

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread Vivek Mishra
but i have changed my **key_validation_class=AsciiType** in order to make **string as row keys** why not key_validation_class=UTF8Type ? -Vivek On Fri, Oct 11, 2013 at 3:55 PM, ashish sanadhya sanadhyaa...@gmail.comwrote: I have done with bulk loader with key_validation_class=LexicalUUIDType

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread Vivek Mishra
Also, please use ByteBufferUtils for byte conversions. On Fri, Oct 11, 2013 at 4:17 PM, Vivek Mishra mishra.v...@gmail.com wrote: but i have changed my **key_validation_class=AsciiType** in order to make **string as row keys** why not key_validation_class=UTF8Type ? -Vivek On Fri, Oct

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread ashish sanadhya
Hi vivek key_validation_class=UTF8Type will do ,but i certainly want *string as row keys, *so will it work ?? * * On Fri, Oct 11, 2013 at 4:17 PM, Vivek Mishra mishra.v...@gmail.com wrote: Also, please use ByteBufferUtils for byte conversions. On Fri, Oct 11, 2013 at 4:17 PM, Vivek Mishra

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread Vivek Mishra
I am not able to get your meaning for *string as row keys ? * * * Row key values will be of type key_validation_class only * * On Fri, Oct 11, 2013 at 4:25 PM, ashish sanadhya sanadhyaa...@gmail.comwrote: Hi vivek key_validation_class=UTF8Type will do ,but i certainly want *string as row

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread ashish sanadhya
Here i mean that key_validation_class=AsciiType or key_validation_class=UTF8Type but I am unable to create an sstable for this column family create column family Users1 with key_validation_class=UTF8Type and comparator=AsciiType AND column_metadata = [ {column_name:

Re: Bulk Loader in cassandra : String as row keys in cassandra

2013-10-11 Thread Vivek Mishra
Change key_validation_class to UTF8Type and usersWriter.newRow(ByteBufferUtil.bytes(String.valueOf(lineNumber))); On Fri, Oct 11, 2013 at 4:42 PM, ashish sanadhya sanadhyaa...@gmail.comwrote: Here i mean that key_validation_class=AsciiType or key_validation_class=UTF8Type but I am unable