Re: Random NoHostAvailableException using DataStax Java driver

2014-11-04 Thread Olivier Michallat
Hi, Let's move the discussion to the Java driver mailing list: https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user I'm posting a reply to this message there. -- Olivier Michallat Driver tools engineer, DataStax On Tue, Nov 4, 2014 at 12:45 PM, Ola Nowak ola.nowa

Re: ONE consistency required 2 writes? huh?

2014-07-23 Thread Olivier Michallat
Hi Kevin, This message was likely generated by the Java driver, not by Cassandra. I'll follow up to your other post on the driver's mailing list. -- Olivier On Wed, Jul 23, 2014 at 4:37 AM, Kevin Burton bur...@spinn3r.com wrote: Perhaps it's me but it seems this exception is wrong:

Re: Can I call getBytes on a text column to get the raw (already encoded UTF8)

2014-06-24 Thread Olivier Michallat
Assuming we're talking about the DataStax Java driver: getBytes will throw an exception, because it validates that the column is of type BLOB. But you can use getBytesUnsafe: ByteBuffer b = row.getBytesUnsafe(aTextColumn); // if you want to check it: Charset.forName(UTF-8).decode(b);