将 RAILS 与 Hbase 结合使用的最佳方式是什么?
已安装 https://github.com/greglu/hbase-stargate ,但似乎有些方法不太适用, 例如:row = @client.create_row('terms', 'book', Time.now.to_i, {:name => 'data:fr', :value => 2})
在 Hbase shell 中,我得到空值:
scan 'terms', {CACHE_BLOCKS => false} ROW COLUMN+CELL book column=data:fr, timestamp=1325880415, value=
此外,有些行根本没有创建。 这是我的表架构:
table_options = { :name => 'data', \
:max_versions => 1, \
:compression => Stargate::Model::CompressionType::NONE, \
:in_memory => false, \
:block_cache => false, \
:ttl => -1, \
:max_cell_size => 2147483647
}
client.create_table('terms', table_options)
Whats bad with hbase-stargate gem?
将 Rails 与 HBase 集成的最佳方式(最快)是什么? 谢谢你!
Already install https://github.com/greglu/hbase-stargate
, but it seems, that some methods is not working appropriate,
for example: row = @client.create_row('terms', 'book', Time.now.to_i, {:name => 'data:fr', :value => 2})
In Hbase shell I got empty value:
scan 'terms', {CACHE_BLOCKS => false} ROW COLUMN+CELL book column=data:fr, timestamp=1325880415, value=
Also, some rows does not created at all.
This is my schema for table:
table_options = { :name => 'data', \
:max_versions => 1, \
:compression => Stargate::Model::CompressionType::NONE, \
:in_memory => false, \
:block_cache => false, \
:ttl => -1, \
:max_cell_size => 2147483647
}
client.create_table('terms', table_options)
Whats wrong with hbase-stargate gem?
Which is the best way(fastest) to integrate rails with hbase?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来 massive_record 可能是更好的选择。
Looks like massive_record might be a better option.