1
我只是HBase的初學者。我想將RDBMS表遷移到HBase。在RDBMS什麼是最適合RDBMS表的HBase架構
表模式有點像這樣:
Field Type Collation Null Key Default Extra Privileges Comment
--------------- ---------------- ----------------- ------ ------ ------- ------------ -- ------------------------------- -------
id int(16) unsigned (NULL) NO PRI (NULL) auto_increment select,insert,update,references
user_id varchar(64) latin1_swedish_ci NO MUL (NULL) select,insert,update,references
type_id int(11) (NULL) NO (NULL) select,insert,update,references
application_id int(16) unsigned (NULL) YES MUL (NULL) select,insert,update,references
title varchar(128) latin1_swedish_ci YES (NULL) select,insert,update,references
body text latin1_swedish_ci YES (NULL) select,insert,update,references
posted_time datetime (NULL) YES (NULL) select,insert,update,references
template_params text latin1_swedish_ci YES (NULL) select,insert,update,references
count int(11) (NULL) YES (NULL) select,insert,update,references
reference_id int(16) (NULL) YES (NULL) select,insert,update,references
viewer_id varchar(64) latin1_swedish_ci YES (NULL) select,insert,update,references
這裏的身體和templete有VARCHAR格式JSON數據。現在我想爲HBase中的這個表創建模式。
操作上的數據進行了:
1. Activity retrival for a user id
2. Activity retrival for a viewer id
3. Activity retrival for particular type_id/particular type_id and user_id.
4. Activity retrival made after t time.
什麼將是此此時,相應的架構?
謝謝,這是有益的,我。順便說一句,我使用Java和kundera與HBase –