New to Cassandra, I'm using the latest release 1.2, wondering which java client is best for CQL3?
Which java client is best to handle CQL3?
(7 posts) (3 voices)-
Posted 4 months ago #
-
I don't know, but in the webinar (http://www.datastax.com/resources/webinars/collegecredit, see C*hristmas Comes Early at the bottom of the page), the presenter said he preferred Astyanax.
Posted 4 months ago # -
If you're feeling adventurous, there's also the new Java driver that uses the native binary protocol instead of being based on Thrift (like Hector and Astyanax): https://github.com/datastax/java-driver
Posted 4 months ago # -
Thank you, guys. Trying Astyanax, will update my experience later.
Posted 4 months ago # -
Great--here's a tip that I learned the hard way. When building the new Java driver for use with CQL 3 and Astyanax, I needed to skip the CCM tests by using execute: mvn install -Dmaven.test.skip=true. You can then add the jar in the driver-core/target directory to your eclipse project as shown in the C*hristmas Comes Early by Brian ONeill.
Posted 4 months ago # -
Astyanax dosen't work with Cassandra 1.2. I tried their examples: https://github.com/Netflix/astyanax/wiki/Cql-and-cql3. Writing data dosen't work. Reading data works partially, I can read row out but parsing composite column fail.
BTW, I'm using Astyanax version 1.56.21.
Posted 4 months ago # -
Sorry you had a problem. By default, you do not have write permission on the database /var/lib/cassandra/*. See step 4 in http://www.datastax.com/docs/1.2/install/install_bintar#steps-to-install-cassandra.
I got the read and write to work using the example in the webinar (http://www.datastax.com/resources/webinars/collegecredit, see C*hristmas Comes Early at the bottom of the page). Used the latest Astyanax, and the pre-release version of the DataStax Java Driver. Please see post http://www.datastax.com/support-forums/topic/datastax-java-driver for some tips.
I had to put everything on the localhost.
Posted 4 months ago #
