Teach Me To Code » Screencasts (iPhone/iPod)

Cassandra Basic Schema and Ruby Gem


Listen Later

You can get cassandra at cassandra.apache.org and the ruby gem by running:
gem install cassandra
I did run into a problem with the trift_client gem when installing. If you get a Load Error, run this.
sudo chmod 644 /usr/local/lib/ruby/gems/1.8/gems/thrift_client-0.6.3/lib/thrift_client/*.rb
sudo chmod 755 /usr/local/lib/ruby/gems/1.8/gems/thrift_client-0.6.3/lib/thrift_client/connection
Here are some of the Cassandra commands from the video:
#connects to the cassandra server using the Twitter keyspace
store = Cassandra.new(“Twitter”)
# create a new column family in the Twitter keyspace called Users
cf_def = CassandraThrift::CfDef.new(:keyspace => “Twitter”, :name => “Users”)
store.add_column_family(cf_def)
# add or create a row to the column family
store.insert(“Users”, “cmaxw”, {“name” => “Charles Max Wood”, “description” => “Awesome coder”})
# remove a column from a row
store.remove(“Users”, “cmaxw”, “description”)
Download 17.2 MB
Download (iPod & iPhone) 20.9 MB
Take the 2011 Readers Survey
...more
View all episodesView all episodes
Download on the App Store

Teach Me To Code » Screencasts (iPhone/iPod)By Charles Max Wood

  • 4.3
  • 4.3
  • 4.3
  • 4.3
  • 4.3

4.3

3 ratings


More shows like Teach Me To Code » Screencasts (iPhone/iPod)

View all
JavaScript Jabber by Charles M Wood

JavaScript Jabber

235 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

45 Listeners

The Freelancers' Show by Charles M Wood

The Freelancers' Show

23 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

33 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

57 Listeners

My JavaScript Story by Charles M Wood

My JavaScript Story

4 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

61 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

21 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners