Wednesday, December 12, 2012

Presenting for Datastax C*ollege Credit Webinar Series

I'm going to present as part of the Datastax C*ollege Webinar Series tomorrow, December 13, 2012.

I've taken some liberties with the material.  We are going to venture into uncharted territory and use Astyanax and CQL to build a globally scalable naughty and nice list for Santa.  Hopefully,  it will be a good time.  Please join if you have time!

Tuesday, December 11, 2012

Building CQL Java Driver on Mac OSX (and Cassandra Cluster Manager(ccm): No module named yaml)

I wanted to play around with the new CQL java driver.

After git cloning, I had tests failing because it relied on Cassandra Cluster Manager (ccm), found here:

I quickly grabbed that and ran:
sudo ./ install

But ran into this error when I tried to run:

bone@zen$ ccm
Traceback (most recent call last):
  File "/usr/local/bin/ccm", line 5, in 
    from ccmlib import common
  File "/Library/Python/2.7/site-packages/ccmlib/", line 5, in 
    import os, common, shutil, re, sys, cluster, node, socket
  File "/Library/Python/2.7/site-packages/ccmlib/", line 3, in 
    import common, yaml, os, subprocess, shutil, repository, time, re
ImportError: No module named yaml

After a couple tries installing via easy_install, I had to resort to installing libYAML from source:

Once, I did that, then the easy install worked with:
sudo easy_install pyyaml

Then, ccm was happy, which allowed me to build CQL java-driver.

bone@zen:~/git/boneill42/java-driver$ mvn clean install 
[INFO] Cassandra Java Driver ............................. SUCCESS [0.496s]
[INFO] Cassandra Java Driver - Core ...................... SUCCESS [4.718s]
[INFO] Cassandra Java Driver Examples .................... SUCCESS [0.008s]
[INFO] Cassandra Java Driver Examples - Stress ........... SUCCESS [4.965s]
[INFO] ------------------------------------------------------------------------