Trivial
used https://github.com/seomoz/homebrew-cloudera
due to build failure in default formula(my OS X clang doesn't have TR1),
used https://gist.github.com/duedal/6934417
brew install https://gist.github.com/duedal/6934417/raw/d802f592d66c5bb9908db8a7c75ae57262dafa06/thrift.rb
(you may need github api key because it accesses github several times)
For me, thrift file is on
/usr/local/Cellar/hbase/0.94.6-cdh4.3.0/libexec/src/main/resources/org/apache/hadoop/hbase/thrift
move to the directory and execute
thrift --gen js:node Hbase.thrift
that's it! gen-nodejs will be generated. copy these files into your working directory(where test.coffee is in)
npm install thrift
coffee test.coffee