SlideShare a Scribd company logo
1 of 16
Download to read offline
Hbase
            (Data Model)   (Architecture)




    




Public 2009/5/13
• HBase
• HBase
• HBase
•




          Copyright 2009 - Trend Micro Inc.
Introduction to HBase

‧ HBase
                   (Multi-Dimensional Map)




‧ Hbase
  Petabytes
‧ HBase    Hadoop             (HDFS)
  Bigtable
‧ Hbase        Hadoop MapReduce




                                             Copyright 2009 - Trend Micro Inc.
HBase

• 2006   11
  – Google       BigTable
• 2007   2
  –              HBase      Hadoop
• 2007   10
  –                 HBase
• 2008   1
  – Hadoop        Apache    HBase
• 2008   10
  – HBase 0.18       0.19




                                     Copyright 2009 - Trend Micro Inc.
HBase           …

• 不是關聯式(Relational)資料庫系統
  – 表格(Table)只有一個主要索引
(primary
index)
即
row
key.
  – 不提供
join
  – 不提供
SQL語法。
     • 提供Java函式庫,
與
REST與Thrift等介面。
     • 提供
getRow(),
Scan()
存取資料。
         – getRow()可以取得一筆row
range的資料,同時也可以指定版本
           (timestamp)。
         – Scan()可以取得整個表格的資料或是一組row
range
(設定start
key,
end

           key)
  – 有限的單元性(Aatomicity)與交易
(transaction)功能.
  – 只有一種資料型態
(bytes)



                                                      Copyright 2009 - Trend Micro Inc.
Bigtable?

•                  (Relational Database)   C.R.U.D
    (create, retrieval, update, delete)




•
     – Big queries –
     – Big databases - 100 Terabytes


•   Bigtable           MapReduce




Classification                                   Copyright 2009 - Trend Micro Inc.
HBase?

   • HBase   Bigtable
   •
   •      Hadoop          (HDFS)
   • HBase Apache




Classification                     Copyright 2009 - Trend Micro Inc.
(Logical Data Model)
   • Table row key
   • Table schema                column families .
        –     column family                   columns
        –     column                               (timestamp)
        – Column                      row                columns
        –        column family   columns
               column
        – byte[]                  (Row, Family: Column, Timestamp) 
          Value
    Row Key         Time     Column         Column (Family)
                    Stamp    (Family)       “anchor:”
                             “content:”
    com.cnn.www     t9       “<html>…”      “anchor:cnnsi.com”    “CNN”
                    t8                      “anchor:cnnsi.com”    “CNN”
                                            “anchor:my.lock.ca”   “MyLook”

                    t6       “<html>…”

Classification                                                            Copyright 2009 - Trend Micro Inc.
(Physical Data Model)
 • HBase                Table       column family


         Row Key        Time    Column (Family)
                        Stamp   “content:”

         com.cnn.www    t9      “<html>…”
                        t6      “<html>…”

         Row Key        Time    Column (Family)
                        Stamp   “anchor:”
         com.cnn.www    t9      “anchor:cnnsi. “CNN”
                                com”
                        t8      “anchor:cnnsi. “CNN”
                                com”           “MyLook”
                                “anchor:my.loc
                                k.ca”

Classification                                            Copyright 2009 - Trend Micro Inc.
–
•
      –          Blog entry   title, date, author, type, text
      –          User username, password
      –              Blog entry           Comments              comment   title, author,        text



•   ERD




Classification                                                                        Copyright 2009 - Trend Micro Inc.
– HBase Table Schema




•   Row key
      –   type ( 2           )      timestamp
      –        rows   type       timestamp            scan ()     Table
•   BLOGENTRY    COMMENT ”                 ”    comment_title, comment_author,
    comment_text column families                  column             Column
           comment timestamp                       column family column




Classification                                                            Copyright 2009 - Trend Micro Inc.
HBase

   Region        Row Keys   Column Family   •                  region
                            “Content:”

   Region 1 00000           …                   – Region      startKey
                 00001      …                     endKey
                 …          …               •       region
                 09999      …
   Region 2 10000           …                   HDFS
                 …          …                     region     Hadoop
                 …          …
                 29999      …




Classification                                                    Copyright 2009 - Trend Micro Inc.
HBase

 • Region Servers
       –                      request (write/read/scan)
       –           heartbeat    master
       –         region servers                 throughput
 • HBase Master
       –            region servers
       –            regions region servers
       –                                              region server
       –         master   single point of failure




Classification                                                        Copyright 2009 - Trend Micro Inc.
HBase


                                            ROOT
                                  Region
                                  Server
                                            META

                                           Region 1
                                  Region
                                  Server
                                           Region 2
        Master
                                           Region 3
                                  Region
                                  Server
         HRPC              HRPC            Region 4

                 Clients          Region   Region 5
                                  Server
                                           Region 6




Classification                                        Copyright 2009 - Trend Micro Inc.
HBase              Client Interface

   • Java client
         – get(byte [] row, byte [] column, long timestamp, int versions);
   • Non-Java clients
         – Thrift server
                 • Sample ruby, c++, & java (via thrift) clients
         – REST server
   • TableInput/OutputFormat for MapReduce
   • HBase Shell
         – ./bin/hbase shell YOUR_SCRIPT




Classification                                                      Copyright 2009 - Trend Micro Inc.
• Google BigTable
         – http://labs.google.com/papers/bigtable.html
   • HBase
         – http://hadoop.apache.org/hbase/
   • HBase           wiki
         – http://wiki.apache.org/hadoop/Hbase




Classification                                           Copyright 2009 - Trend Micro Inc.

More Related Content

Viewers also liked

ITIL V3 and ISO 20K Cert Schemes - ITSM Academy Webinar
ITIL V3 and ISO 20K Cert Schemes - ITSM Academy WebinarITIL V3 and ISO 20K Cert Schemes - ITSM Academy Webinar
ITIL V3 and ISO 20K Cert Schemes - ITSM Academy WebinarITSM Academy, Inc.
 
Measuring Success Ryan Ibm May 2010
Measuring Success Ryan Ibm May 2010Measuring Success Ryan Ibm May 2010
Measuring Success Ryan Ibm May 2010robertryan25
 
ITIL v3 overview from Kent State University
ITIL v3 overview from Kent State UniversityITIL v3 overview from Kent State University
ITIL v3 overview from Kent State Universitygulciny07
 
An introductory overview of itil v3
An introductory overview of itil v3An introductory overview of itil v3
An introductory overview of itil v3Gina-Carmen Zaharia
 
Information Technology Infrastructure
Information Technology Infrastructure Information Technology Infrastructure
Information Technology Infrastructure Hurriya Saeed rana
 
Information technology Infrastructure library{itil}
Information technology Infrastructure library{itil}Information technology Infrastructure library{itil}
Information technology Infrastructure library{itil}Arshad Havaldar
 
Information Technology Infrastructure Library
Information Technology Infrastructure LibraryInformation Technology Infrastructure Library
Information Technology Infrastructure LibraryCOEPD HR
 
Itil Overview Johannesburg November 2009
Itil Overview Johannesburg November 2009Itil Overview Johannesburg November 2009
Itil Overview Johannesburg November 2009robertryan25
 

Viewers also liked (8)

ITIL V3 and ISO 20K Cert Schemes - ITSM Academy Webinar
ITIL V3 and ISO 20K Cert Schemes - ITSM Academy WebinarITIL V3 and ISO 20K Cert Schemes - ITSM Academy Webinar
ITIL V3 and ISO 20K Cert Schemes - ITSM Academy Webinar
 
Measuring Success Ryan Ibm May 2010
Measuring Success Ryan Ibm May 2010Measuring Success Ryan Ibm May 2010
Measuring Success Ryan Ibm May 2010
 
ITIL v3 overview from Kent State University
ITIL v3 overview from Kent State UniversityITIL v3 overview from Kent State University
ITIL v3 overview from Kent State University
 
An introductory overview of itil v3
An introductory overview of itil v3An introductory overview of itil v3
An introductory overview of itil v3
 
Information Technology Infrastructure
Information Technology Infrastructure Information Technology Infrastructure
Information Technology Infrastructure
 
Information technology Infrastructure library{itil}
Information technology Infrastructure library{itil}Information technology Infrastructure library{itil}
Information technology Infrastructure library{itil}
 
Information Technology Infrastructure Library
Information Technology Infrastructure LibraryInformation Technology Infrastructure Library
Information Technology Infrastructure Library
 
Itil Overview Johannesburg November 2009
Itil Overview Johannesburg November 2009Itil Overview Johannesburg November 2009
Itil Overview Johannesburg November 2009
 

Similar to Zh Tw Introduction To H Base

Zh Tw Introduction To Hadoop And Hdfs
Zh Tw Introduction To Hadoop And HdfsZh Tw Introduction To Hadoop And Hdfs
Zh Tw Introduction To Hadoop And Hdfskevin liao
 
TriHUG - Beyond Batch
TriHUG - Beyond BatchTriHUG - Beyond Batch
TriHUG - Beyond Batchboorad
 
[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)baggioss
 
[Roblek] Distributed computing in practice
[Roblek] Distributed computing in practice[Roblek] Distributed computing in practice
[Roblek] Distributed computing in practicejavablend
 
Architectures For Scaling Ajax
Architectures For Scaling AjaxArchitectures For Scaling Ajax
Architectures For Scaling Ajaxwolframkriesing
 
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008ChemAxon
 
Facebook Hadoop Data & Applications
Facebook Hadoop Data & ApplicationsFacebook Hadoop Data & Applications
Facebook Hadoop Data & Applicationsdzhou
 
When To Use Ruby On Rails
When To Use Ruby On RailsWhen To Use Ruby On Rails
When To Use Ruby On Railsdosire
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)outstanding59
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldRichard McDougall
 
App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)outstanding59
 
Architecting applications with Hadoop - Fraud Detection
Architecting applications with Hadoop - Fraud DetectionArchitecting applications with Hadoop - Fraud Detection
Architecting applications with Hadoop - Fraud Detectionhadooparchbook
 
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012larsgeorge
 
HBase tales from the trenches
HBase tales from the trenchesHBase tales from the trenches
HBase tales from the trencheswchevreuil
 
Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
Tricks And Tradeoffs Of Deploying My Sql Clusters In The CloudTricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
Tricks And Tradeoffs Of Deploying My Sql Clusters In The CloudMySQLConference
 

Similar to Zh Tw Introduction To H Base (20)

Zh Tw Introduction To Hadoop And Hdfs
Zh Tw Introduction To Hadoop And HdfsZh Tw Introduction To Hadoop And Hdfs
Zh Tw Introduction To Hadoop And Hdfs
 
Introduction to h base
Introduction to h baseIntroduction to h base
Introduction to h base
 
TriHUG - Beyond Batch
TriHUG - Beyond BatchTriHUG - Beyond Batch
TriHUG - Beyond Batch
 
[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)
 
[Roblek] Distributed computing in practice
[Roblek] Distributed computing in practice[Roblek] Distributed computing in practice
[Roblek] Distributed computing in practice
 
Architectures For Scaling Ajax
Architectures For Scaling AjaxArchitectures For Scaling Ajax
Architectures For Scaling Ajax
 
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008
MarvinSketch and MarvinView: Tips And Tricks: US UGM 2008
 
Markup As An Api
Markup As An ApiMarkup As An Api
Markup As An Api
 
20080611accel
20080611accel20080611accel
20080611accel
 
Hbase jdd
Hbase jddHbase jdd
Hbase jdd
 
Facebook Hadoop Data & Applications
Facebook Hadoop Data & ApplicationsFacebook Hadoop Data & Applications
Facebook Hadoop Data & Applications
 
When To Use Ruby On Rails
When To Use Ruby On RailsWhen To Use Ruby On Rails
When To Use Ruby On Rails
 
20080528dublinpt1
20080528dublinpt120080528dublinpt1
20080528dublinpt1
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
 
App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)
 
Architecting applications with Hadoop - Fraud Detection
Architecting applications with Hadoop - Fraud DetectionArchitecting applications with Hadoop - Fraud Detection
Architecting applications with Hadoop - Fraud Detection
 
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012
From Batch to Realtime with Hadoop - Berlin Buzzwords - June 2012
 
HBase tales from the trenches
HBase tales from the trenchesHBase tales from the trenches
HBase tales from the trenches
 
Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
Tricks And Tradeoffs Of Deploying My Sql Clusters In The CloudTricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
 

More from kevin liao

琵琶贈心心_趨勢教育基金會
琵琶贈心心_趨勢教育基金會琵琶贈心心_趨勢教育基金會
琵琶贈心心_趨勢教育基金會kevin liao
 
2010 programming contest preliminary feedback
2010 programming contest preliminary feedback2010 programming contest preliminary feedback
2010 programming contest preliminary feedbackkevin liao
 
2009 騰雲駕霧程式競賽Opening Slide
2009 騰雲駕霧程式競賽Opening Slide2009 騰雲駕霧程式競賽Opening Slide
2009 騰雲駕霧程式競賽Opening Slidekevin liao
 
Zh Tw Introduction To Map Reduce
Zh Tw Introduction To Map ReduceZh Tw Introduction To Map Reduce
Zh Tw Introduction To Map Reducekevin liao
 
Zh Tw Introduction To Cloud Computing
Zh Tw Introduction To Cloud ComputingZh Tw Introduction To Cloud Computing
Zh Tw Introduction To Cloud Computingkevin liao
 
Smart Protection Network
Smart Protection NetworkSmart Protection Network
Smart Protection Networkkevin liao
 
坐看雲起時_談雲端技術運用
坐看雲起時_談雲端技術運用坐看雲起時_談雲端技術運用
坐看雲起時_談雲端技術運用kevin liao
 

More from kevin liao (7)

琵琶贈心心_趨勢教育基金會
琵琶贈心心_趨勢教育基金會琵琶贈心心_趨勢教育基金會
琵琶贈心心_趨勢教育基金會
 
2010 programming contest preliminary feedback
2010 programming contest preliminary feedback2010 programming contest preliminary feedback
2010 programming contest preliminary feedback
 
2009 騰雲駕霧程式競賽Opening Slide
2009 騰雲駕霧程式競賽Opening Slide2009 騰雲駕霧程式競賽Opening Slide
2009 騰雲駕霧程式競賽Opening Slide
 
Zh Tw Introduction To Map Reduce
Zh Tw Introduction To Map ReduceZh Tw Introduction To Map Reduce
Zh Tw Introduction To Map Reduce
 
Zh Tw Introduction To Cloud Computing
Zh Tw Introduction To Cloud ComputingZh Tw Introduction To Cloud Computing
Zh Tw Introduction To Cloud Computing
 
Smart Protection Network
Smart Protection NetworkSmart Protection Network
Smart Protection Network
 
坐看雲起時_談雲端技術運用
坐看雲起時_談雲端技術運用坐看雲起時_談雲端技術運用
坐看雲起時_談雲端技術運用
 

Recently uploaded

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Recently uploaded (20)

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

Zh Tw Introduction To H Base

  • 1. Hbase (Data Model) (Architecture)  Public 2009/5/13
  • 2. • HBase • HBase • HBase • Copyright 2009 - Trend Micro Inc.
  • 3. Introduction to HBase ‧ HBase (Multi-Dimensional Map) ‧ Hbase Petabytes ‧ HBase Hadoop (HDFS) Bigtable ‧ Hbase Hadoop MapReduce Copyright 2009 - Trend Micro Inc.
  • 4. HBase • 2006 11 – Google BigTable • 2007 2 – HBase Hadoop • 2007 10 – HBase • 2008 1 – Hadoop Apache HBase • 2008 10 – HBase 0.18 0.19 Copyright 2009 - Trend Micro Inc.
  • 5. HBase … • 不是關聯式(Relational)資料庫系統 – 表格(Table)只有一個主要索引
(primary
index)
即
row
key. – 不提供
join – 不提供
SQL語法。 • 提供Java函式庫,
與
REST與Thrift等介面。 • 提供
getRow(),
Scan()
存取資料。 – getRow()可以取得一筆row
range的資料,同時也可以指定版本 (timestamp)。 – Scan()可以取得整個表格的資料或是一組row
range
(設定start
key,
end
 key) – 有限的單元性(Aatomicity)與交易
(transaction)功能. – 只有一種資料型態
(bytes) Copyright 2009 - Trend Micro Inc.
  • 6. Bigtable? • (Relational Database) C.R.U.D (create, retrieval, update, delete) • – Big queries – – Big databases - 100 Terabytes • Bigtable MapReduce Classification Copyright 2009 - Trend Micro Inc.
  • 7. HBase? • HBase Bigtable • • Hadoop (HDFS) • HBase Apache Classification Copyright 2009 - Trend Micro Inc.
  • 8. (Logical Data Model) • Table row key • Table schema column families . – column family columns – column (timestamp) – Column row columns – column family columns column – byte[] (Row, Family: Column, Timestamp)  Value Row Key Time Column Column (Family) Stamp (Family) “anchor:” “content:” com.cnn.www t9 “<html>…” “anchor:cnnsi.com” “CNN” t8 “anchor:cnnsi.com” “CNN” “anchor:my.lock.ca” “MyLook” t6 “<html>…” Classification Copyright 2009 - Trend Micro Inc.
  • 9. (Physical Data Model) • HBase Table column family Row Key Time Column (Family) Stamp “content:” com.cnn.www t9 “<html>…” t6 “<html>…” Row Key Time Column (Family) Stamp “anchor:” com.cnn.www t9 “anchor:cnnsi. “CNN” com” t8 “anchor:cnnsi. “CNN” com” “MyLook” “anchor:my.loc k.ca” Classification Copyright 2009 - Trend Micro Inc.
  • 10. – • – Blog entry title, date, author, type, text – User username, password – Blog entry Comments comment title, author, text • ERD Classification Copyright 2009 - Trend Micro Inc.
  • 11. – HBase Table Schema • Row key – type ( 2 ) timestamp – rows type timestamp scan () Table • BLOGENTRY COMMENT ” ” comment_title, comment_author, comment_text column families column Column comment timestamp column family column Classification Copyright 2009 - Trend Micro Inc.
  • 12. HBase Region Row Keys Column Family • region “Content:” Region 1 00000 … – Region startKey 00001 … endKey … … • region 09999 … Region 2 10000 … HDFS … … region Hadoop … … 29999 … Classification Copyright 2009 - Trend Micro Inc.
  • 13. HBase • Region Servers – request (write/read/scan) – heartbeat master – region servers throughput • HBase Master – region servers – regions region servers – region server – master single point of failure Classification Copyright 2009 - Trend Micro Inc.
  • 14. HBase ROOT Region Server META Region 1 Region Server Region 2 Master Region 3 Region Server HRPC HRPC Region 4 Clients Region Region 5 Server Region 6 Classification Copyright 2009 - Trend Micro Inc.
  • 15. HBase Client Interface • Java client – get(byte [] row, byte [] column, long timestamp, int versions); • Non-Java clients – Thrift server • Sample ruby, c++, & java (via thrift) clients – REST server • TableInput/OutputFormat for MapReduce • HBase Shell – ./bin/hbase shell YOUR_SCRIPT Classification Copyright 2009 - Trend Micro Inc.
  • 16. • Google BigTable – http://labs.google.com/papers/bigtable.html • HBase – http://hadoop.apache.org/hbase/ • HBase wiki – http://wiki.apache.org/hadoop/Hbase Classification Copyright 2009 - Trend Micro Inc.