How to integrate hypertable with Ruby on Rails

18 views
Skip to first unread message

Amal Kumar

unread,
Aug 27, 2009, 3:31:38 AM8/27/09
to Hypertable Development


1. Download latest hypertable-thrift-client gem:

wget
http://github.com/tylerkovacs/hypertable/raw/4c15fb35726841154491725c2ad20e831f5b32ba/src/rb/ThriftClient/pkg/hypertable-thrift-client-0.3.0.gem

2. cd tylerkovacs-hypertable-4c15fb35726841154491725c2ad20e831f5b32ba/
src/rb/ThriftClient/pkg

* unzipped folder

3. gem install hypertable-thrift-client-0.3.0.gem

4. Add github as a gem source (if you haven't already)

gem sources -a http://gems.github.com

5. Install hypertable_adapter gem


gem install tylerkovacs-hypertable_adapter

6. Install HyperRecord gem

gem install tylerkovacs-hyper_record


7. gem install thrift

8. Add the below code in config/database.yml at the end

hypertable:

adapter: hypertable

host: localhost

port: 38080

9. Add the below code in config/environment.rb at the end
require 'hypertable/thrift_client'
require 'thrift'
require 'active_record/connection_adapters/hypertable_adapter'
require 'hyper_record'

10. Then start the server


Reply all
Reply to author
Forward
0 new messages