Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Yuki Morishita

Yuki Morishita

Cassandra Summit Tokyo 2015

1cf6896ee8a72af116a172b9e1cd5883?s=128

CassandraCommunityJP

May 13, 2015
Tweet

Transcript

  1. Apache Cassandra ϓϩδΣΫτʹ ඈͼࠐ΋͏ Cassandra Summit Tokyo 2015

  2. ৿Լ ༤و Apache Cassandraίϛολʔɻ DataStaxͰಇ͘ιϑτ΢ΣΞσϕϩούʔɻ ςΩαεभΦʔεςΟϯʹͯɺຖ೔΄΅100% Cassandra ͷίʔυΛॻ͘࢓ࣄΛ͍ͯ͠·͢ɻ twitter: @yukim

    github: https://github.com/yukim freenode: yukim
  3. Apache Cassandra ίϛϡχςΟʔʹࢀՃͯ͠ ϓϩδΣΫτʹߩݙ͠·ͤΜ͔?

  4. ϓϩδΣΫτʹߩݙ͢Δ != ίʔυΛॻ͘

  5. ίʔυҎ֎Ͱͷߩݙ ίʔυΛॻ͘͜ͱҎ֎ʹ΋ϓϩδΣΫτʹߩݙ Ͱ͖·͢ •  όάϨϙʔτ/վળཁ๬ •  ϔϧϓ •  ࣄྫ঺հ

  6. None
  7. None
  8. ίʔυΛॻ͘ͷ͕޷͖ͳਓ •  όάͷमਖ਼ •  ৽ػೳͷ௥Ճ •  पลπʔϧͷ։ൃ

  9. ߩݙͯ͠Կ͕خ͍͠ͷ? ϓϩδΣΫτશମͱͯ͠... •  όάͷݮগ •  ৽ػೳ •  ϊ΢ϋ΢ͷ஝ੵ •  ...

  10. ߩݙͯ͠Կ͕خ͍͠ͷ? ݸਓͱͯ͠ •  τϥϒϧγϡʔτʹڧ͘ͳΔ o  ίϛϡχςΟͷ׆༻ o  ιʔείʔυͷཧղ •  ੈք༗਺ͷαʔϏεΛؒ઀తʹࢧ͍͑ͯΔ

    o  AppleɺNetflixɺPlaystation Network
  11. ߩݙͯ͠Կ͕خ͍͠ͷ? •  ͓څྉ? http://stackoverflow.com/research/developer-­‐survey-­‐2015  

  12. ίϛϡχςΟʔʹࢀՃ͢Δ

  13. ίϛϡχέʔγϣϯ •  userϝʔϦϯάϦετ o  ΞʔΩςΫνϟ΍σʔλϞσϦϯάͷ࣭໰ o  ӡ༻ͷΞυόΠε o  Τϥʔใࠂ • 

    JIRA o  όάͷใࠂ o  ৽ػೳͷཁ๬ o  ։ൃͷத৺ •  IRC o  ϝʔϦϯάϦετͷϦΞϧλΠϜ൛ o  ͕࣌ࠩ೉఺
  14. ίϛϡχέʔγϣϯ •  ·ͣ͸ϝʔϦϯάϦετʹࢀՃͯ͠ΈΑ͏ o  user-­‐subscribe@cassandra.apache.org  ʹۭϝʔϧΛૹΔ ͚ͩɻ֬ೝϝʔϧ͕དྷͨΒฦ৴ϘλϯΛԡͯ͠ฦ ৴ɻ •  ݄ʹ500௨Ҏ্ͷϝʔϧ

    •  ΄΅͢΂ͯͷϝʔϧʹฦ৴͋Γ
  15. ͦ͏͸ݴͬͯ΋ӳޠͷน͕... •  ׳ΕΔ o  ϝʔϦϯάϦετΛோΊଓ͚Δ o  ຖ೔ͪΐͬͱ͕ͣͭେࣄ •  ਅࣅΔ o 

    ӳޠͰॻ͘ͱ͖͸ଞͷਓͷਅࣅΛ͢Δ •  ؒҧ͑͸ؾʹ͠ͳ͍ o  ੍࣌ɺ3୯ݱ͸Αؒ͘ҧ͑Δ o  ಡΜͰΔਓͷ൒෼͸ωΠςΟϒ͡Όͳ͍ o  ωΠςΟϒͩͬͯؒҧ͑Δ
  16. None
  17. Ͱ΋΍ͬͺΓ೔ຊޠͰ... •  ೔ຊCassandraίϛϡχςΟ o  https://groups.google.com/forum/#!forum/cassandra-­‐jp     •  ݟͯ·͢! ඞͣฦ৴͢ΔͷͰΑΖ͓͘͠ئ͍

    ͠·͢!
  18. Ͱ΋΍ͬͺΓ೔ຊޠͰ... •  Qiita o  http://qiita.com/tags/cassandra  

  19. Ͱ΋΍ͬͺΓ೔ຊޠͰ... •  stackoverflow೔ຊޠ൛ o  http://ja.stackoverflow.com/questions/tagged/cassandra  

  20. CassandraΛϋοΫ͢Δ

  21. ඞཁͳπʔϧ •  Java SDK o  2.1͔Β8ͰίϯύΠϧՄೳ •  git •  Apache

    Ant •  (Python 2.x) o  ςετπʔϧΛಈ͔͢ͱ͖
  22. ։ൃऀ޲͚ ίϛϡχέʔγϣϯνϟϯωϧ •  ϝʔϦϯάϦετ o  dev@cassandra.apache.org §  σΟεΧογϣϯ §  ϦϦʔε౤ථ

    o  commits@cassandra.apache.org §  JIRA §  git ίϛοτ •  IRC o  #cassandra-dev
  23. ιʔείʔυͷऔಘͱϏϧυ •  ApacheͷϨϙδτϦ͔Β $  git  clone  ɹhttps://git-­‐wip-­‐ us.apache.org/repos/asf/cassandra.git    

    •  Ϗϧυ͸AntΛར༻ $  ant  
  24. IDEͷηοτΞοϓ •  Eclipse  $  ant  generate-­‐eclipse-­‐files     •  IntelliJ

    IDEA $  ant  generate-­‐idea-­‐files  
  25. ίʔυΛॻ͘લʹ •  CassandraͷΞʔΩςΫνϟΛཧղ͢Δ o  جຊతͳߟ͑ํ͸มΘ͍ͬͯͳ͍ §  CommitLog, Memtable, SSTable etc.

    o  ೔ຊޠυΩϡϝϯτ http://docs.datastax.com/ja/cassandra-jajp/2.0/cassandra/architecture/ architectureTOC.html
  26. ίʔυΛॻ͘લʹ •  ιʔείʔυΛಡΉ o  ΞʔΩςΫνϟͱରԠͤ͞ͳ͕ΒಡΈਐΊΔ §  ॻ͖ࠐΈ/ಡΈࠐΈ •  StorageProxy.java Λى఺ʹ

    §  ΦϖϨʔγϣϯܥ •  StorageService.java Λى఺ʹ §  ΫϥελϦϯά •  o.a.c.locator/o.a.c.dht ύοέʔδ •  cassandra-2.0 ϒϥϯν͕͓͢͢Ί o  ࠷ۙ͸ύϑΥʔϚϯεΞοϓͷͨΊͷςΫχοΫ͕ ຬࡌ
  27. ίʔσΟϯάͱςετ •  CassandraίʔσΟϯάن໿ o  http://wiki.apache.org/cassandra/CodeStyle     •  Ϣχοτςετ o 

    test/unit ҎԼ͕Ϣχοτςετιʔείʔυ o  Ant Λ࢖ͬͯ֬ೝ $  ant  test   $  ant  test  -­‐Dtest.name=CompactionsTest  
  28. ෼ࢄ؀ڥͰͷγεςϜςετ •  Cassandra͸෼ࢄγεςϜɻ Ͳ͏΍ͬͯςετ͢Δ? o  ccm (Cassandra Cluster Manager) o 

    cassandra-dtest
  29. ccm https://github.com/pcmanus/ccm   •  CassandraΫϥελΛίϚϯυϥΠϯͱ Python͔Βૢ࡞͢Δ $  ccm  create  -­‐n

     3  test_cluster   $  ccm  node1  stress   $  ccm  node2  stop  
  30. cassandra-dtest https://github.com/riptano/cassandra-­‐dtest   •  ccmΛ༻͍ͨcassandraΫϥελςετεΠ ʔτ •  ࣮ߦʹ͸ `nose`ςετπʔϧ͕ඞཁ $

     pip  install  nose   $  nosetests  repair_test.py  
  31. “Low-Hanging Fruit” •  ೉қ౓௿ΊͷJIRAνέοτɻ •  ·ͣ͸ LHF ͔Β͸͡ΊͯݟΑ͏ɻ https://issues.apache.org/jira/browse/CASSANDRA-­‐8817?jql=project %20%3D%20CASSANDRA%20AND%20labels%20%3D%20%22lhf%22%20AND

    %20resolution%20%3D%20Unresolved    
  32. ·ͱΊ •  ίʔυΛॻ͔ͳͯ͘΋Apache Cassandraϓ ϩδΣΫτʹߩݙͰ͖·͢ o  ӳޠ͕μϝͳΒ೔ຊޠͰ΋! •  ॻ͚Δਓ͸ͥͻνϟϨϯδͯ͠Έͯͩ͘͞ ͍ɻ

    o  “LHF” ΋͋ΔΑ! ͓ख఻͍͠·͢ɻ yuki@datastax.com