Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created August 14, 2009 08:24
Show Gist options
  • Save jmhodges/167713 to your computer and use it in GitHub Desktop.
Save jmhodges/167713 to your computer and use it in GitHub Desktop.
jmh @ shinygecko: ~/projects/cassandra_client (master)
→ irb -r lib/cassandra
irb(main):001:0> c = Cassandra.new('Twitter'); c.get(:Tweets, 'first')
=> #<OrderedHash {"text"=>"omg no wai"}>
....
jmh @ shinygecko: ~/projects/hadoop-0.20.0
→ ./bin/hadoop jar \
~/projects/build_cassandra/cassandra/build/apache-cassandra-incubating-examples-0.4.0-dev.jar \
org.apache.cassandra.examples.WordCount -inputspace Twitter -inputfamily Tweets -outputdir outie
....
jmh @ shinygecko: ~/projects/hadoop-0.20.0
→ cat outie/part-r-00000
no 1
omg 1
wai 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment