ݺߣ

ݺߣShare a Scribd company logo
ɢ KVS  ǩ`ǥ
ɢ KVS n}  Elastic scaling  ԤΤ륹`ӥƥ Big data  Ҏģǩ` Goodbye DBAs Хǩ`٩`ߣ Economics  Ugԣ Flexible data models  ܛʥǩ`ǥ룩 n} Maturity  죩 Support  ݩ`ȣ Analytics and business intelligence  ʥƥȥӥͥƥꥸ󥹣 Administration   Expertise  Tԣ NoSQL ˤĤ֪äƤ٤ 10 ± ( http://www.publickey1.jp/blog/10/nosql10.html )   դΥƩ`
HBase  Cassandra Υǩ`ǥ multi dimensional sorted map ԪМgB BigtableΥǩ`ǥ ָ(column oriented) RDBMSָ ӵĤФζx Query-based model Ϥ碌˺Ϥ碌ƥǩ`ǥz RDBMSDomain-based model
ǩ` Column SuperColumn ColumnFamily Keyspace Cassandra ӵ ӵ Column   Table ColumnFamily Ʃ`֥  ` x HBase RDBMS
ǩ` HBase Ʃ`֥Υǩ`mʥǩ`Ƿָ ɤΥΩ`ɤɤιΥ`֤äƤ뤫ϥޥ`ǹ Ʃ`֥ڤΥǩ`ϥ`혤ǥ`ȤƤ Cassandra `ԪӋ㤵줿ȩ`΂ˤꡢǩ`򱣴椹Ω`ɤQ ǥեȤǤϥȩ`ϥ`Ӌ㤵줿ϥå傎ʤᡢBAǤɢ ɤΥΩ`ɤɤιΥ`֤äƤ뤫ϥ饹ȫǹФƤ ȩ`ɥå ( Partitioner ) 椨Х`ǥ`Ȥ뤳Ȥ SuperColumn  Column ǰǥ`ȤƤ
ǩ`ȡ `ָ 1 ȡ ˥å夵ƤʤϤ BloomFilter ʤɤäȡ `ιָƗ HBase 롣ȡüޟo Cassandra 뤬 Partitioner Όgװˤʤ ȡФ ιָȡ HBase  Cassandra  ȡФ
OӋ`ЄĚs ǩ` ` ID `Ȥһ Є ID ƥһ ¤֤󤭤 혥`Є ID 혥`äˉQЄ ID ¤֤С 10 ̶ ( ^ 0  ) Ҫ `ȤЄĚs n ȡä
OӋ HBase Έ ` ` ID_ 혥`Є ID Ʃ`֥?եߥ` UserAction  action  `Є  n ȡ÷ `ι C_9999999996 C_9999999993 C_9999999991 A_9999999999 B_9999999996 B_9999999998 C_9999999995 A_9999999992 A_9999999990 `
OӋ Cassandra Έ ` ` ID եߥ` UserAction `ѩ` 혥`Є ID  action  `Є  n ȡ÷ `ָƥ`ѩ`ι C B A ` 9999999995 9999999994 9999999993 9999999991 9999999998 9999999996 9999999999 9999999992 9999999990 `ѩ`
OӋ HBase `򼚤gλO `ι n ȡ Cassandra `Ϥ̶ȻĤȤO SuperColumn ι n ȡ ͬ`Υǩ`ˤʤȷɢƫ꤬䤹Τע⤬Ҫ
ʤߤ Google App Engine Υǩ`ȥΈϤϥץѥƥˌƥǥåɿ ضΥǥåץѥƥˤϹ Ĥˤ HBase  Cassandra ˤ⤳Τ褦ʶΥǥåΙCܤĤ褦ˤʤϤ
ޤȤ KVSRDBΥǩ`ǥ`֪ ָָ Query-based modelDomain-based model KVSΥǩ`ǥ֪ ӵĤʥඨx RDBȤ` ǩ`äȥ֪ `Ȥ줿ǩ`򹠇ȡ뤫 ǩ`äǥ󥰤뤨Ӱ
οURL HBase/DataModel http:// wiki.apache.org/hadoop/Hbase/DataModel   HBase Θ ( Ҫ DataModel) http://lunarium.info/arc/index.php/HBase%E3%81%AE%E6%A7%8B%E9%80%A0(%E6%A6%82%E8%A6%81%E3%81%A8DataModel)   Cassandra Data Model http://www.slideshare.net/ebenhewitt/cassandra-datamodel-4985524 Cassandra ǩ`ǥT http://d.hatena.ne.jp/digitalsoul/20100628/1277681382

More Related Content

ɢճΥǩ`ǥ

  • 1. ɢ KVS ǩ`ǥ
  • 2. ɢ KVS n} Elastic scaling ԤΤ륹`ӥƥ Big data Ҏģǩ` Goodbye DBAs Хǩ`٩`ߣ Economics Ugԣ Flexible data models ܛʥǩ`ǥ룩 n} Maturity 죩 Support ݩ`ȣ Analytics and business intelligence ʥƥȥӥͥƥꥸ󥹣 Administration Expertise Tԣ NoSQL ˤĤ֪äƤ٤ 10 ± ( http://www.publickey1.jp/blog/10/nosql10.html ) դΥƩ`
  • 3. HBase Cassandra Υǩ`ǥ multi dimensional sorted map ԪМgB BigtableΥǩ`ǥ ָ(column oriented) RDBMSָ ӵĤФζx Query-based model Ϥ碌˺Ϥ碌ƥǩ`ǥz RDBMSDomain-based model
  • 4. ǩ` Column SuperColumn ColumnFamily Keyspace Cassandra ӵ ӵ Column Table ColumnFamily Ʃ`֥ ` x HBase RDBMS
  • 5. ǩ` HBase Ʃ`֥Υǩ`mʥǩ`Ƿָ ɤΥΩ`ɤɤιΥ`֤äƤ뤫ϥޥ`ǹ Ʃ`֥ڤΥǩ`ϥ`혤ǥ`ȤƤ Cassandra `ԪӋ㤵줿ȩ`΂ˤꡢǩ`򱣴椹Ω`ɤQ ǥեȤǤϥȩ`ϥ`Ӌ㤵줿ϥå傎ʤᡢBAǤɢ ɤΥΩ`ɤɤιΥ`֤äƤ뤫ϥ饹ȫǹФƤ ȩ`ɥå ( Partitioner ) 椨Х`ǥ`Ȥ뤳Ȥ SuperColumn Column ǰǥ`ȤƤ
  • 6. ǩ`ȡ `ָ 1 ȡ ˥å夵ƤʤϤ BloomFilter ʤɤäȡ `ιָƗ HBase 롣ȡüޟo Cassandra 뤬 Partitioner Όgװˤʤ ȡФ ιָȡ HBase Cassandra ȡФ
  • 7. OӋ`ЄĚs ǩ` ` ID `Ȥһ Є ID ƥһ ¤֤󤭤 혥`Є ID 혥`äˉQЄ ID ¤֤С 10 ̶ ( ^ 0 ) Ҫ `ȤЄĚs n ȡä
  • 8. OӋ HBase Έ ` ` ID_ 혥`Є ID Ʃ`֥?եߥ` UserAction action `Є n ȡ÷ `ι C_9999999996 C_9999999993 C_9999999991 A_9999999999 B_9999999996 B_9999999998 C_9999999995 A_9999999992 A_9999999990 `
  • 9. OӋ Cassandra Έ ` ` ID եߥ` UserAction `ѩ` 혥`Є ID action `Є n ȡ÷ `ָƥ`ѩ`ι C B A ` 9999999995 9999999994 9999999993 9999999991 9999999998 9999999996 9999999999 9999999992 9999999990 `ѩ`
  • 10. OӋ HBase `򼚤gλO `ι n ȡ Cassandra `Ϥ̶ȻĤȤO SuperColumn ι n ȡ ͬ`Υǩ`ˤʤȷɢƫ꤬䤹Τע⤬Ҫ
  • 11. ʤߤ Google App Engine Υǩ`ȥΈϤϥץѥƥˌƥǥåɿ ضΥǥåץѥƥˤϹ Ĥˤ HBase Cassandra ˤ⤳Τ褦ʶΥǥåΙCܤĤ褦ˤʤϤ
  • 12. ޤȤ KVSRDBΥǩ`ǥ`֪ ָָ Query-based modelDomain-based model KVSΥǩ`ǥ֪ ӵĤʥඨx RDBȤ` ǩ`äȥ֪ `Ȥ줿ǩ`򹠇ȡ뤫 ǩ`äǥ󥰤뤨Ӱ
  • 13. οURL HBase/DataModel http:// wiki.apache.org/hadoop/Hbase/DataModel HBase Θ ( Ҫ DataModel) http://lunarium.info/arc/index.php/HBase%E3%81%AE%E6%A7%8B%E9%80%A0(%E6%A6%82%E8%A6%81%E3%81%A8DataModel) Cassandra Data Model http://www.slideshare.net/ebenhewitt/cassandra-datamodel-4985524 Cassandra ǩ`ǥT http://d.hatena.ne.jp/digitalsoul/20100628/1277681382