SlideShare une entreprise Scribd logo
1  sur  45
ADVANCED HBASE
Architecture and Schema Design
JAX UK, October 2012

Lars George
Director EMEA Services
About Me

•  Director EMEA Services @ Cloudera
    •  Consulting on Hadoop projects (everywhere)
•  Apache Committer
    •  HBase and Whirr
•  O’Reilly Author
    •  HBase – The Definitive Guide
      •  Now in Japanese!

•  Contact
    •  lars@cloudera.com                      日本語版も出ました!	
  
    •  @larsgeorge
Agenda

•  HBase Architecture
•  Schema Design
HBASE ARCHITECTURE
HBase Tables
HBase Tables
HBase Tables
HBase Tables and Regions

•  Table is made up of any number if regions
•  Region is specified by its startKey and endKey
    •  Empty table: (Table, NULL, NULL)
    •  Two-region table: (Table, NULL, “com.cloudera.www”)
       and (Table, “com.cloudera.www”, NULL)
•  Each region may live on a different node and is
 made up of several HDFS files and blocks, each
 of which is replicated by Hadoop
Distribution
HBase Tables

•  Tables are sorted by Row in lexicographical order
•  Table schema only defines its column families
    •  Each family consists of any number of columns
    •  Each column consists of any number of versions
    •  Columns only exist when inserted, NULLs are free
    •  Columns within a family are sorted and stored
       together
    •  Everything except table names are byte[]


(Table, Row, Family:Column, Timestamp) -> Value
HBase Architecture
HBase Architecture (cont.)

•  HBase uses HDFS (or similar) as its reliable
 storage layer
  •  Handles checksums, replication, failover
•  Native Java API, Gateway for REST, Thrift, Avro
•  Master manages cluster
•  RegionServer manage data
•  ZooKeeper is used the “neural network”
    •  Crucial for HBase
    •  Bootstraps and coordinates cluster
HBase Architecture (cont.)

•  Based on Log-Structured Merge-Trees (LSM-Trees)
•  Inserts are done in write-ahead log first
•  Data is stored in memory and flushed to disk on
   regular intervals or based on size
•  Small flushes are merged in the background to keep
   number of files small
•  Reads read memory stores first and then disk based
   files second
•  Deletes are handled with “tombstone” markers
•  Atomicity on row level no matter how many columns
   •  keeps locking model easy
MemStores
•  After data is written to the WAL the RegionServer
   saves KeyValues in memory store
•  Flush to disk based on size, see
   hbase.hregion.memstore.flush.size
•  Default size is 64MB
•  Uses snapshot mechanism to write flush to disk
   while still serving from it and accepting new data
   at the same time
•  Snapshots are released when flush has
   succeeded
Compactions
•  General Concepts
    •  Two types: Minor and Major Compactions
    •  Asynchronous and transparent to client
    •  Manage file bloat from MemStore flushes
•  Minor Compactions
    •  Combine last “few” flushes
    •  Triggered by number of storage files
•  Major Compactions
    •  Rewrite all storage files
    •  Drop deleted data and those values exceeding TTL and/or number of
       versions
    •  Triggered by time threshold
    •  Cannot be scheduled automatically starting at a specific time (bummer!)
    •  May (most definitely) tax overall HDFS IO performance

Tip: Disable major compactions and schedule to run manually (e.g.
  cron) at off-peak times
Block Cache
•  Acts as very large, in-memory distributed cache
•  Assigned a large part of the JVM heap in the RegionServer process,
   see hfile.block.cache.size
•  Optimizes reads on subsequent columns and rows
•  Has priority to keep “in-memory” column families in cache
    if(inMemory) {
           this.priority = BlockPriority.MEMORY;
    } else {
           this.priority = BlockPriority.SINGLE;
    }

•  Cache needs to be used properly to get best read performance
    •  Turn off block cache on operations that cause large churn
    •  Store related data “close” to each other
•  Uses LRU cache with threaded (asynchronous) evictions based on
  priorities
Region Splits
•  Triggered by configured maximum file size of any
 store file
   •  This is checked directly after the compaction call to
     ensure store files are actually approaching the
     threshold
•  Runs as asynchronous thread on RegionServer
•  Splits are fast and nearly instant
    •  Reference files point to original region files and
       represent each half of the split
•  Compactions take care of splitting original files
 into new region directories
Auto Sharding
Auto Sharding and Distribution

•  Unit of scalability in HBase is the Region
•  Sorted, contiguous range of rows
•  Spread “randomly” across RegionServer
•  Moved around for load balancing and failover
•  Split automatically or manually to scale with
   growing data
•  Capacity is solely a factor of cluster nodes vs.
   regions per node
Column Family vs. Column

•  Use only a few column families
    •  Causes many files that need to stay open per region
       plus class overhead per family
•  Best used when logical separation between data
   and meta columns
•  Sorting per family can be used to convey
   application logic or access pattern
Storage Separation

•  Column Families allow for separation of data
    •  Used by Columnar Databases for fast analytical
       queries, but on column level only
    •  Allows different or no compression depending on the
       content type
•  Segregate information based on access pattern
•  Data is stored in one or more storage file, called
 HFiles
Column Families
SCHEMA DESIGN
Key Cardinality
Key Cardinality

•  The best performance is gained from using row
   keys
•  Time range bound reads can skip store files
   •  So can Bloom Filters
•  Selecting column families reduces the amount of
   data to be scanned
•  Pure value based filtering is a full table scan
   •  Filters often are too, but reduce network traffic
Fold, Store, and Shift
Fold, Store, and Shift

•  Logical layout does not match physical one
•  All values are stored with the full coordinates,
   including: Row Key, Column Family, Column
   Qualifier, and Timestamp
•  Folds columns into “row per column”
•  NULLs are cost free as nothing is stored
•  Versions are multiple “rows” in folded table
Key/Table Design

•  Crucial to gain best performance
    •  Why do I need to know? Well, you also need to know
       that RDBMS is only working well when columns are
       indexed and query plan is OK
•  Absence of secondary indexes forces use of row
   key or column name sorting
•  Transfer multiple indexes into one
   •  Generate large table -> Good since fits architecture
     and spreads across cluster
DDI

•  Stands for Denormalization, Duplication and
   Intelligent Keys
•  Needed to overcome shortcomings of
   architecture
•  Denormalization -> Replacement for JOINs
•  Duplication -> Design for reads
•  Intelligent Keys -> Implement indexing and
   sorting, optimize reads
Pre-materialize Everything

•  Achieve one read per customer request if
   possible
•  Otherwise keep at lowest number
•  Reads between 10ms (cache miss) and 1ms
   (cache hit)
•  Use MapReduce to compute exacts in batch
•  Store and merge updates live
•  Use incrementColumnValue


            Motto: “Design for Reads”
Tall-Narrow vs. Flat-Wide Tables

•  Rows do not split
    •  Might end up with one row per region
•  Same storage footprint
•  Put more details into the row key
    •  Sometimes dummy column only
    •  Make use of partial key scans
•  Tall with Scans, Wide with Gets
    •  Atomicity only on row level
•  Example: Large graphs, stored as adjacency
 matrix
Example: Mail Inbox

        <userId> : <colfam> : <messageId> : <timestamp> : <email-message>

12345   :   data   :   5fc38314-e290-ae5da5fc375d       :   1307097848   :   "Hi Lars, ..."
12345   :   data   :   725aae5f-d72e-f90f3f070419       :   1307099848   :   "Welcome, and ..."
12345   :   data   :   cc6775b3-f249-c6dd2b1a7467       :   1307101848   :   "To Whom It ..."
12345   :   data   :   dcbee495-6d5e-6ed48124632c       :   1307103848   :   "Hi, how are ..."


                                               or
12345-5fc38314-e290-ae5da5fc375d         :   data   :   :   1307097848   :   "Hi Lars, ..."
12345-725aae5f-d72e-f90f3f070419         :   data   :   :   1307099848   :   "Welcome, and ..."
12345-cc6775b3-f249-c6dd2b1a7467         :   data   :   :   1307101848   :   "To Whom It ..."
12345-dcbee495-6d5e-6ed48124632c         :   data   :   :   1307103848   :   "Hi, how are ..."


                           è   Same Storage Requirements
Partial Key Scans
Key	
                                        Descrip+on	
  
<userId>                                     Scan	
  over	
  all	
  messages	
  
                                             for	
  a	
  given	
  user	
  ID	
  
<userId>-<date>                              Scan	
  over	
  all	
  messages	
  
                                             on	
  a	
  given	
  date	
  for	
  the	
  
                                             given	
  user	
  ID	
  
<userId>-<date>-<messageId>                  Scan	
  over	
  all	
  parts	
  of	
  a	
  
                                             message	
  for	
  a	
  given	
  user	
  
                                             ID	
  and	
  date	
  
<userId>-<date>-<messageId>-<attachmentId>   Scan	
  over	
  all	
  
                                             a8achments	
  of	
  a	
  
                                             message	
  for	
  a	
  given	
  user	
  
                                             ID	
  and	
  date	
  
Sequential Keys

  <timestamp><more key>: {CF: {CQ: {TS : Val}}}

•  Hotspotting on Regions: bad!
•  Instead do one of the following:
     •  Salting
      •  Prefix   <timestamp> with distributed value
      •  Binning or bucketing rows across regions
   •  Key field swap/promotion
       •  Move <more key> before the timestamp (see OpenTSDB
          later)
   •  Randomization
       •  Move <timestamp> out of key
Salting

•    Prefix row keys to gain spread
•    Use well known or numbered prefixes
•    Use modulo to spread across servers
•    Enforce common data stay close to each other for
     subsequent scanning or MapReduce processing
      0_rowkey1, 1_rowkey2, 2_rowkey3
      0_rowkey4, 1_rowkey5, 2_rowkey6

•  Sorted by prefix first
    0_rowkey1
    0_rowkey4
    1_rowkey2
    1_rowkey5
    …
Hashing vs. Sequential Keys

•  Uses hashes for best spread
    •  Use for example MD5 to be able to recreate key
      •  Key = MD5(customerID)
   •  Counter productive for range scans


•  Use sequential keys for locality
    •  Makes use of block caches
    •  May tax one server overly, may be avoided by salting
       or splitting regions while keeping them small
Key Design
Key Design Summary

•  Based on access pattern, either use sequential or
   random keys
•  Often a combination of both is needed
   •  Overcome architectural limitations
•  Neither is necessarily bad
    •  Use bulk import for sequential keys and reads
    •  Random keys are good for random access patterns
Example: Facebook Insights

•  > 20B Events per Day
•  1M Counter Updates per Second
    •  100 Nodes Cluster
    •  10K OPS per Node
•  ”Like” button triggers AJAX request
•  Event written to log file
•  30mins current for website owner


     Web	
  ➜	
  Scribe	
  ➜	
  Ptail	
  ➜	
  Puma	
  ➜	
  HBase	
  
HBase Counters

•  Store counters per Domain and per URL
    •  Leverage HBase increment (atomic read-modify-
       write) feature
•  Each row is one specific Domain or URL
•  The columns are the counters for specific metrics
•  Column families are used to group counters by
 time range
   •  Set time-to-live on CF level to auto-expire counters by
     age to save space, e.g., 2 weeks on “Daily Counters”
     family
Key Design
•  Reversed Domains
    •  Examples: “com.cloudera.www”, “com.cloudera.blog”
    •  Helps keeping pages per site close, as HBase efficiently
       scans blocks of sorted keys
•  Domain Row Key =
 MD5(Reversed Domain) + Reversed Domain
   •  Leading MD5 hash spreads keys randomly across all regions
      for load balancing reasons
   •  Only hashing the domain groups per site (and per subdomain
      if needed)
•  URL Row Key =
 MD5(Reversed Domain) + Reversed Domain + URL ID
   •  Unique ID per URL already available, make use of it
Insights Schema
Summary

•  Design for Use-Case
    •  Read, Write, or Both?
•  Avoid Hotspotting
•  Consider using IDs instead of full text
•  Leverage Column Family to HFile relation
•  Shift details to appropriate position
    •  Composite Keys
    •  Column Qualifiers
Summary (cont.)

•  Schema design is a combination of
    •  Designing the keys (row and column)
    •  Segregate data into column families
    •  Choose compression and block sizes
•  Similar techniques are needed to scale most
 systems
   •  Add indexes, partition data, consistent hashing
•  Denormalization, Duplication, and Intelligent
 Keys (DDI)
Ques+ons?	
  

Contenu connexe

Tendances

Thrift vs Protocol Buffers vs Avro - Biased Comparison
Thrift vs Protocol Buffers vs Avro - Biased ComparisonThrift vs Protocol Buffers vs Avro - Biased Comparison
Thrift vs Protocol Buffers vs Avro - Biased ComparisonIgor Anishchenko
 
HBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseHBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseenissoz
 
Apache Phoenix and HBase: Past, Present and Future of SQL over HBase
Apache Phoenix and HBase: Past, Present and Future of SQL over HBaseApache Phoenix and HBase: Past, Present and Future of SQL over HBase
Apache Phoenix and HBase: Past, Present and Future of SQL over HBaseDataWorks Summit/Hadoop Summit
 
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - Cloudera
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - ClouderaHadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - Cloudera
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - ClouderaCloudera, Inc.
 
Apache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAseApache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAseenissoz
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to RedisDvir Volk
 
Introduction to memcached
Introduction to memcachedIntroduction to memcached
Introduction to memcachedJurriaan Persyn
 
Supporting Apache HBase : Troubleshooting and Supportability Improvements
Supporting Apache HBase : Troubleshooting and Supportability ImprovementsSupporting Apache HBase : Troubleshooting and Supportability Improvements
Supporting Apache HBase : Troubleshooting and Supportability ImprovementsDataWorks Summit
 
InnoDB Internal
InnoDB InternalInnoDB Internal
InnoDB Internalmysqlops
 
Etsy Activity Feeds Architecture
Etsy Activity Feeds ArchitectureEtsy Activity Feeds Architecture
Etsy Activity Feeds ArchitectureDan McKinley
 
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Databricks
 
The Parquet Format and Performance Optimization Opportunities
The Parquet Format and Performance Optimization OpportunitiesThe Parquet Format and Performance Optimization Opportunities
The Parquet Format and Performance Optimization OpportunitiesDatabricks
 
Apache HBase Performance Tuning
Apache HBase Performance TuningApache HBase Performance Tuning
Apache HBase Performance TuningLars Hofhansl
 
Query Compilation in Impala
Query Compilation in ImpalaQuery Compilation in Impala
Query Compilation in ImpalaCloudera, Inc.
 
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation Buffers
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation BuffersHBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation Buffers
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation BuffersCloudera, Inc.
 
Redis overview for Software Architecture Forum
Redis overview for Software Architecture ForumRedis overview for Software Architecture Forum
Redis overview for Software Architecture ForumChristopher Spring
 
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013mumrah
 

Tendances (20)

Thrift vs Protocol Buffers vs Avro - Biased Comparison
Thrift vs Protocol Buffers vs Avro - Biased ComparisonThrift vs Protocol Buffers vs Avro - Biased Comparison
Thrift vs Protocol Buffers vs Avro - Biased Comparison
 
HBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseHBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBase
 
Apache Phoenix and HBase: Past, Present and Future of SQL over HBase
Apache Phoenix and HBase: Past, Present and Future of SQL over HBaseApache Phoenix and HBase: Past, Present and Future of SQL over HBase
Apache Phoenix and HBase: Past, Present and Future of SQL over HBase
 
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - Cloudera
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - ClouderaHadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - Cloudera
Hadoop World 2011: Hadoop Troubleshooting 101 - Kate Ting - Cloudera
 
Apache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAseApache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAse
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
Introduction to memcached
Introduction to memcachedIntroduction to memcached
Introduction to memcached
 
Supporting Apache HBase : Troubleshooting and Supportability Improvements
Supporting Apache HBase : Troubleshooting and Supportability ImprovementsSupporting Apache HBase : Troubleshooting and Supportability Improvements
Supporting Apache HBase : Troubleshooting and Supportability Improvements
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
InnoDB Internal
InnoDB InternalInnoDB Internal
InnoDB Internal
 
Etsy Activity Feeds Architecture
Etsy Activity Feeds ArchitectureEtsy Activity Feeds Architecture
Etsy Activity Feeds Architecture
 
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
 
The Parquet Format and Performance Optimization Opportunities
The Parquet Format and Performance Optimization OpportunitiesThe Parquet Format and Performance Optimization Opportunities
The Parquet Format and Performance Optimization Opportunities
 
HBase Low Latency
HBase Low LatencyHBase Low Latency
HBase Low Latency
 
Apache HBase Performance Tuning
Apache HBase Performance TuningApache HBase Performance Tuning
Apache HBase Performance Tuning
 
Query Compilation in Impala
Query Compilation in ImpalaQuery Compilation in Impala
Query Compilation in Impala
 
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation Buffers
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation BuffersHBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation Buffers
HBase HUG Presentation: Avoiding Full GCs with MemStore-Local Allocation Buffers
 
Redis overview for Software Architecture Forum
Redis overview for Software Architecture ForumRedis overview for Software Architecture Forum
Redis overview for Software Architecture Forum
 
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
Introduction and Overview of Apache Kafka, TriHUG July 23, 2013
 
Redis introduction
Redis introductionRedis introduction
Redis introduction
 

En vedette

Hadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignHadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignCloudera, Inc.
 
HBase Blockcache 101
HBase Blockcache 101HBase Blockcache 101
HBase Blockcache 101Nick Dimiduk
 
HBase for Architects
HBase for ArchitectsHBase for Architects
HBase for ArchitectsNick Dimiduk
 
Intro to HBase - Lars George
Intro to HBase - Lars GeorgeIntro to HBase - Lars George
Intro to HBase - Lars GeorgeJAX London
 
HBase Advanced Schema Design - Berlin Buzzwords - June 2012
HBase Advanced Schema Design - Berlin Buzzwords - June 2012HBase Advanced Schema Design - Berlin Buzzwords - June 2012
HBase Advanced Schema Design - Berlin Buzzwords - June 2012larsgeorge
 
Intro to HBase Internals & Schema Design (for HBase users)
Intro to HBase Internals & Schema Design (for HBase users)Intro to HBase Internals & Schema Design (for HBase users)
Intro to HBase Internals & Schema Design (for HBase users)alexbaranau
 
HBase Coprocessor Introduction
HBase Coprocessor IntroductionHBase Coprocessor Introduction
HBase Coprocessor IntroductionSchubert Zhang
 
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQLHands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQLPiotr Pruski
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designphanleson
 
Update on OpenTSDB and AsyncHBase
Update on OpenTSDB and AsyncHBase Update on OpenTSDB and AsyncHBase
Update on OpenTSDB and AsyncHBase HBaseCon
 
Strata + Hadoop World 2012: Apache HBase Features for the Enterprise
Strata + Hadoop World 2012: Apache HBase Features for the EnterpriseStrata + Hadoop World 2012: Apache HBase Features for the Enterprise
Strata + Hadoop World 2012: Apache HBase Features for the EnterpriseCloudera, Inc.
 
Introduction to HBase - Phoenix HUG 5/14
Introduction to HBase - Phoenix HUG 5/14Introduction to HBase - Phoenix HUG 5/14
Introduction to HBase - Phoenix HUG 5/14Jeremy Walsh
 
A 3 dimensional data model in hbase for large time-series dataset-20120915
A 3 dimensional data model in hbase for large time-series dataset-20120915A 3 dimensional data model in hbase for large time-series dataset-20120915
A 3 dimensional data model in hbase for large time-series dataset-20120915Dan Han
 
HBase from the Trenches - Phoenix Data Conference 2015
HBase from the Trenches - Phoenix Data Conference 2015HBase from the Trenches - Phoenix Data Conference 2015
HBase from the Trenches - Phoenix Data Conference 2015Avinash Ramineni
 
Big Data: HBase and Big SQL self-study lab
Big Data:  HBase and Big SQL self-study lab Big Data:  HBase and Big SQL self-study lab
Big Data: HBase and Big SQL self-study lab Cynthia Saracco
 
HBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtHBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtMichael Stack
 
Cassandra Data Modeling
Cassandra Data ModelingCassandra Data Modeling
Cassandra Data ModelingMatthew Dennis
 

En vedette (20)

Hadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema DesignHadoop World 2011: Advanced HBase Schema Design
Hadoop World 2011: Advanced HBase Schema Design
 
HBase Blockcache 101
HBase Blockcache 101HBase Blockcache 101
HBase Blockcache 101
 
HBase for Architects
HBase for ArchitectsHBase for Architects
HBase for Architects
 
Intro to HBase - Lars George
Intro to HBase - Lars GeorgeIntro to HBase - Lars George
Intro to HBase - Lars George
 
HBase Advanced Schema Design - Berlin Buzzwords - June 2012
HBase Advanced Schema Design - Berlin Buzzwords - June 2012HBase Advanced Schema Design - Berlin Buzzwords - June 2012
HBase Advanced Schema Design - Berlin Buzzwords - June 2012
 
Intro to HBase Internals & Schema Design (for HBase users)
Intro to HBase Internals & Schema Design (for HBase users)Intro to HBase Internals & Schema Design (for HBase users)
Intro to HBase Internals & Schema Design (for HBase users)
 
HBase Coprocessor Introduction
HBase Coprocessor IntroductionHBase Coprocessor Introduction
HBase Coprocessor Introduction
 
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQLHands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Hands-on-Lab: Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
 
Valerii Moisieienko Apache hbase workshop
Valerii Moisieienko	Apache hbase workshopValerii Moisieienko	Apache hbase workshop
Valerii Moisieienko Apache hbase workshop
 
H base key design
H base key designH base key design
H base key design
 
HBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table designHBase In Action - Chapter 04: HBase table design
HBase In Action - Chapter 04: HBase table design
 
Update on OpenTSDB and AsyncHBase
Update on OpenTSDB and AsyncHBase Update on OpenTSDB and AsyncHBase
Update on OpenTSDB and AsyncHBase
 
Strata + Hadoop World 2012: Apache HBase Features for the Enterprise
Strata + Hadoop World 2012: Apache HBase Features for the EnterpriseStrata + Hadoop World 2012: Apache HBase Features for the Enterprise
Strata + Hadoop World 2012: Apache HBase Features for the Enterprise
 
Introduction to HBase - Phoenix HUG 5/14
Introduction to HBase - Phoenix HUG 5/14Introduction to HBase - Phoenix HUG 5/14
Introduction to HBase - Phoenix HUG 5/14
 
A 3 dimensional data model in hbase for large time-series dataset-20120915
A 3 dimensional data model in hbase for large time-series dataset-20120915A 3 dimensional data model in hbase for large time-series dataset-20120915
A 3 dimensional data model in hbase for large time-series dataset-20120915
 
HBase from the Trenches - Phoenix Data Conference 2015
HBase from the Trenches - Phoenix Data Conference 2015HBase from the Trenches - Phoenix Data Conference 2015
HBase from the Trenches - Phoenix Data Conference 2015
 
Big Data: HBase and Big SQL self-study lab
Big Data:  HBase and Big SQL self-study lab Big Data:  HBase and Big SQL self-study lab
Big Data: HBase and Big SQL self-study lab
 
HBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtHBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the Art
 
Cassandra Data Modeling
Cassandra Data ModelingCassandra Data Modeling
Cassandra Data Modeling
 
Big data hbase
Big data hbase Big data hbase
Big data hbase
 

Similaire à HBase Advanced - Lars George

Similaire à HBase Advanced - Lars George (20)

HBase in Practice
HBase in Practice HBase in Practice
HBase in Practice
 
HBase in Practice
HBase in PracticeHBase in Practice
HBase in Practice
 
L6.sp17.pptx
L6.sp17.pptxL6.sp17.pptx
L6.sp17.pptx
 
01 hbase
01 hbase01 hbase
01 hbase
 
HBase Low Latency, StrataNYC 2014
HBase Low Latency, StrataNYC 2014HBase Low Latency, StrataNYC 2014
HBase Low Latency, StrataNYC 2014
 
NoSql
NoSqlNoSql
NoSql
 
No sql databases
No sql databasesNo sql databases
No sql databases
 
Cassandra an overview
Cassandra an overviewCassandra an overview
Cassandra an overview
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
Big Data Architecture Workshop - Vahid Amiri
Big Data Architecture Workshop -  Vahid AmiriBig Data Architecture Workshop -  Vahid Amiri
Big Data Architecture Workshop - Vahid Amiri
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
Scaling the Web: Databases & NoSQL
Scaling the Web: Databases & NoSQLScaling the Web: Databases & NoSQL
Scaling the Web: Databases & NoSQL
 
Hbase: an introduction
Hbase: an introductionHbase: an introduction
Hbase: an introduction
 
HBaseCon 2015: HBase @ Flipboard
HBaseCon 2015: HBase @ FlipboardHBaseCon 2015: HBase @ Flipboard
HBaseCon 2015: HBase @ Flipboard
 
HBaseCon 2015- HBase @ Flipboard
HBaseCon 2015- HBase @ FlipboardHBaseCon 2015- HBase @ Flipboard
HBaseCon 2015- HBase @ Flipboard
 
Cassandra
CassandraCassandra
Cassandra
 
Schema Design
Schema DesignSchema Design
Schema Design
 
Apache HBase Workshop
Apache HBase WorkshopApache HBase Workshop
Apache HBase Workshop
 
Cassandra training
Cassandra trainingCassandra training
Cassandra training
 

Plus de JAX London

Everything I know about software in spaghetti bolognese: managing complexity
Everything I know about software in spaghetti bolognese: managing complexityEverything I know about software in spaghetti bolognese: managing complexity
Everything I know about software in spaghetti bolognese: managing complexityJAX London
 
Devops with the S for Sharing - Patrick Debois
Devops with the S for Sharing - Patrick DeboisDevops with the S for Sharing - Patrick Debois
Devops with the S for Sharing - Patrick DeboisJAX London
 
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript AppsBusy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript AppsJAX London
 
It's code but not as we know: Infrastructure as Code - Patrick Debois
It's code but not as we know: Infrastructure as Code - Patrick DeboisIt's code but not as we know: Infrastructure as Code - Patrick Debois
It's code but not as we know: Infrastructure as Code - Patrick DeboisJAX London
 
Locks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerLocks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerJAX London
 
Worse is better, for better or for worse - Kevlin Henney
Worse is better, for better or for worse - Kevlin HenneyWorse is better, for better or for worse - Kevlin Henney
Worse is better, for better or for worse - Kevlin HenneyJAX London
 
Java performance: What's the big deal? - Trisha Gee
Java performance: What's the big deal? - Trisha GeeJava performance: What's the big deal? - Trisha Gee
Java performance: What's the big deal? - Trisha GeeJAX London
 
Clojure made-simple - John Stevenson
Clojure made-simple - John StevensonClojure made-simple - John Stevenson
Clojure made-simple - John StevensonJAX London
 
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias Wessendorf
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias WessendorfHTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias Wessendorf
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias WessendorfJAX London
 
Play framework 2 : Peter Hilton
Play framework 2 : Peter HiltonPlay framework 2 : Peter Hilton
Play framework 2 : Peter HiltonJAX London
 
Complexity theory and software development : Tim Berglund
Complexity theory and software development : Tim BerglundComplexity theory and software development : Tim Berglund
Complexity theory and software development : Tim BerglundJAX London
 
Why FLOSS is a Java developer's best friend: Dave Gruber
Why FLOSS is a Java developer's best friend: Dave GruberWhy FLOSS is a Java developer's best friend: Dave Gruber
Why FLOSS is a Java developer's best friend: Dave GruberJAX London
 
Akka in Action: Heiko Seeburger
Akka in Action: Heiko SeeburgerAkka in Action: Heiko Seeburger
Akka in Action: Heiko SeeburgerJAX London
 
NoSQL Smackdown 2012 : Tim Berglund
NoSQL Smackdown 2012 : Tim BerglundNoSQL Smackdown 2012 : Tim Berglund
NoSQL Smackdown 2012 : Tim BerglundJAX London
 
Closures, the next "Big Thing" in Java: Russel Winder
Closures, the next "Big Thing" in Java: Russel WinderClosures, the next "Big Thing" in Java: Russel Winder
Closures, the next "Big Thing" in Java: Russel WinderJAX London
 
Java and the machine - Martijn Verburg and Kirk Pepperdine
Java and the machine - Martijn Verburg and Kirk PepperdineJava and the machine - Martijn Verburg and Kirk Pepperdine
Java and the machine - Martijn Verburg and Kirk PepperdineJAX London
 
Mongo DB on the JVM - Brendan McAdams
Mongo DB on the JVM - Brendan McAdamsMongo DB on the JVM - Brendan McAdams
Mongo DB on the JVM - Brendan McAdamsJAX London
 
New opportunities for connected data - Ian Robinson
New opportunities for connected data - Ian RobinsonNew opportunities for connected data - Ian Robinson
New opportunities for connected data - Ian RobinsonJAX London
 
HTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaHTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaJAX London
 
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian Plosker
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian PloskerThe Big Data Con: Why Big Data is a Problem, not a Solution - Ian Plosker
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian PloskerJAX London
 

Plus de JAX London (20)

Everything I know about software in spaghetti bolognese: managing complexity
Everything I know about software in spaghetti bolognese: managing complexityEverything I know about software in spaghetti bolognese: managing complexity
Everything I know about software in spaghetti bolognese: managing complexity
 
Devops with the S for Sharing - Patrick Debois
Devops with the S for Sharing - Patrick DeboisDevops with the S for Sharing - Patrick Debois
Devops with the S for Sharing - Patrick Debois
 
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript AppsBusy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
 
It's code but not as we know: Infrastructure as Code - Patrick Debois
It's code but not as we know: Infrastructure as Code - Patrick DeboisIt's code but not as we know: Infrastructure as Code - Patrick Debois
It's code but not as we know: Infrastructure as Code - Patrick Debois
 
Locks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael BarkerLocks? We Don't Need No Stinkin' Locks - Michael Barker
Locks? We Don't Need No Stinkin' Locks - Michael Barker
 
Worse is better, for better or for worse - Kevlin Henney
Worse is better, for better or for worse - Kevlin HenneyWorse is better, for better or for worse - Kevlin Henney
Worse is better, for better or for worse - Kevlin Henney
 
Java performance: What's the big deal? - Trisha Gee
Java performance: What's the big deal? - Trisha GeeJava performance: What's the big deal? - Trisha Gee
Java performance: What's the big deal? - Trisha Gee
 
Clojure made-simple - John Stevenson
Clojure made-simple - John StevensonClojure made-simple - John Stevenson
Clojure made-simple - John Stevenson
 
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias Wessendorf
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias WessendorfHTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias Wessendorf
HTML alchemy: the secrets of mixing JavaScript and Java EE - Matthias Wessendorf
 
Play framework 2 : Peter Hilton
Play framework 2 : Peter HiltonPlay framework 2 : Peter Hilton
Play framework 2 : Peter Hilton
 
Complexity theory and software development : Tim Berglund
Complexity theory and software development : Tim BerglundComplexity theory and software development : Tim Berglund
Complexity theory and software development : Tim Berglund
 
Why FLOSS is a Java developer's best friend: Dave Gruber
Why FLOSS is a Java developer's best friend: Dave GruberWhy FLOSS is a Java developer's best friend: Dave Gruber
Why FLOSS is a Java developer's best friend: Dave Gruber
 
Akka in Action: Heiko Seeburger
Akka in Action: Heiko SeeburgerAkka in Action: Heiko Seeburger
Akka in Action: Heiko Seeburger
 
NoSQL Smackdown 2012 : Tim Berglund
NoSQL Smackdown 2012 : Tim BerglundNoSQL Smackdown 2012 : Tim Berglund
NoSQL Smackdown 2012 : Tim Berglund
 
Closures, the next "Big Thing" in Java: Russel Winder
Closures, the next "Big Thing" in Java: Russel WinderClosures, the next "Big Thing" in Java: Russel Winder
Closures, the next "Big Thing" in Java: Russel Winder
 
Java and the machine - Martijn Verburg and Kirk Pepperdine
Java and the machine - Martijn Verburg and Kirk PepperdineJava and the machine - Martijn Verburg and Kirk Pepperdine
Java and the machine - Martijn Verburg and Kirk Pepperdine
 
Mongo DB on the JVM - Brendan McAdams
Mongo DB on the JVM - Brendan McAdamsMongo DB on the JVM - Brendan McAdams
Mongo DB on the JVM - Brendan McAdams
 
New opportunities for connected data - Ian Robinson
New opportunities for connected data - Ian RobinsonNew opportunities for connected data - Ian Robinson
New opportunities for connected data - Ian Robinson
 
HTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaHTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun Gupta
 
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian Plosker
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian PloskerThe Big Data Con: Why Big Data is a Problem, not a Solution - Ian Plosker
The Big Data Con: Why Big Data is a Problem, not a Solution - Ian Plosker
 

Dernier

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Dernier (20)

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

HBase Advanced - Lars George

  • 1. ADVANCED HBASE Architecture and Schema Design JAX UK, October 2012 Lars George Director EMEA Services
  • 2. About Me •  Director EMEA Services @ Cloudera •  Consulting on Hadoop projects (everywhere) •  Apache Committer •  HBase and Whirr •  O’Reilly Author •  HBase – The Definitive Guide •  Now in Japanese! •  Contact •  lars@cloudera.com 日本語版も出ました!   •  @larsgeorge
  • 8. HBase Tables and Regions •  Table is made up of any number if regions •  Region is specified by its startKey and endKey •  Empty table: (Table, NULL, NULL) •  Two-region table: (Table, NULL, “com.cloudera.www”) and (Table, “com.cloudera.www”, NULL) •  Each region may live on a different node and is made up of several HDFS files and blocks, each of which is replicated by Hadoop
  • 10. HBase Tables •  Tables are sorted by Row in lexicographical order •  Table schema only defines its column families •  Each family consists of any number of columns •  Each column consists of any number of versions •  Columns only exist when inserted, NULLs are free •  Columns within a family are sorted and stored together •  Everything except table names are byte[] (Table, Row, Family:Column, Timestamp) -> Value
  • 12. HBase Architecture (cont.) •  HBase uses HDFS (or similar) as its reliable storage layer •  Handles checksums, replication, failover •  Native Java API, Gateway for REST, Thrift, Avro •  Master manages cluster •  RegionServer manage data •  ZooKeeper is used the “neural network” •  Crucial for HBase •  Bootstraps and coordinates cluster
  • 13. HBase Architecture (cont.) •  Based on Log-Structured Merge-Trees (LSM-Trees) •  Inserts are done in write-ahead log first •  Data is stored in memory and flushed to disk on regular intervals or based on size •  Small flushes are merged in the background to keep number of files small •  Reads read memory stores first and then disk based files second •  Deletes are handled with “tombstone” markers •  Atomicity on row level no matter how many columns •  keeps locking model easy
  • 14. MemStores •  After data is written to the WAL the RegionServer saves KeyValues in memory store •  Flush to disk based on size, see hbase.hregion.memstore.flush.size •  Default size is 64MB •  Uses snapshot mechanism to write flush to disk while still serving from it and accepting new data at the same time •  Snapshots are released when flush has succeeded
  • 15. Compactions •  General Concepts •  Two types: Minor and Major Compactions •  Asynchronous and transparent to client •  Manage file bloat from MemStore flushes •  Minor Compactions •  Combine last “few” flushes •  Triggered by number of storage files •  Major Compactions •  Rewrite all storage files •  Drop deleted data and those values exceeding TTL and/or number of versions •  Triggered by time threshold •  Cannot be scheduled automatically starting at a specific time (bummer!) •  May (most definitely) tax overall HDFS IO performance Tip: Disable major compactions and schedule to run manually (e.g. cron) at off-peak times
  • 16. Block Cache •  Acts as very large, in-memory distributed cache •  Assigned a large part of the JVM heap in the RegionServer process, see hfile.block.cache.size •  Optimizes reads on subsequent columns and rows •  Has priority to keep “in-memory” column families in cache if(inMemory) { this.priority = BlockPriority.MEMORY; } else { this.priority = BlockPriority.SINGLE; } •  Cache needs to be used properly to get best read performance •  Turn off block cache on operations that cause large churn •  Store related data “close” to each other •  Uses LRU cache with threaded (asynchronous) evictions based on priorities
  • 17. Region Splits •  Triggered by configured maximum file size of any store file •  This is checked directly after the compaction call to ensure store files are actually approaching the threshold •  Runs as asynchronous thread on RegionServer •  Splits are fast and nearly instant •  Reference files point to original region files and represent each half of the split •  Compactions take care of splitting original files into new region directories
  • 19. Auto Sharding and Distribution •  Unit of scalability in HBase is the Region •  Sorted, contiguous range of rows •  Spread “randomly” across RegionServer •  Moved around for load balancing and failover •  Split automatically or manually to scale with growing data •  Capacity is solely a factor of cluster nodes vs. regions per node
  • 20. Column Family vs. Column •  Use only a few column families •  Causes many files that need to stay open per region plus class overhead per family •  Best used when logical separation between data and meta columns •  Sorting per family can be used to convey application logic or access pattern
  • 21. Storage Separation •  Column Families allow for separation of data •  Used by Columnar Databases for fast analytical queries, but on column level only •  Allows different or no compression depending on the content type •  Segregate information based on access pattern •  Data is stored in one or more storage file, called HFiles
  • 25. Key Cardinality •  The best performance is gained from using row keys •  Time range bound reads can skip store files •  So can Bloom Filters •  Selecting column families reduces the amount of data to be scanned •  Pure value based filtering is a full table scan •  Filters often are too, but reduce network traffic
  • 27. Fold, Store, and Shift •  Logical layout does not match physical one •  All values are stored with the full coordinates, including: Row Key, Column Family, Column Qualifier, and Timestamp •  Folds columns into “row per column” •  NULLs are cost free as nothing is stored •  Versions are multiple “rows” in folded table
  • 28. Key/Table Design •  Crucial to gain best performance •  Why do I need to know? Well, you also need to know that RDBMS is only working well when columns are indexed and query plan is OK •  Absence of secondary indexes forces use of row key or column name sorting •  Transfer multiple indexes into one •  Generate large table -> Good since fits architecture and spreads across cluster
  • 29. DDI •  Stands for Denormalization, Duplication and Intelligent Keys •  Needed to overcome shortcomings of architecture •  Denormalization -> Replacement for JOINs •  Duplication -> Design for reads •  Intelligent Keys -> Implement indexing and sorting, optimize reads
  • 30. Pre-materialize Everything •  Achieve one read per customer request if possible •  Otherwise keep at lowest number •  Reads between 10ms (cache miss) and 1ms (cache hit) •  Use MapReduce to compute exacts in batch •  Store and merge updates live •  Use incrementColumnValue Motto: “Design for Reads”
  • 31. Tall-Narrow vs. Flat-Wide Tables •  Rows do not split •  Might end up with one row per region •  Same storage footprint •  Put more details into the row key •  Sometimes dummy column only •  Make use of partial key scans •  Tall with Scans, Wide with Gets •  Atomicity only on row level •  Example: Large graphs, stored as adjacency matrix
  • 32. Example: Mail Inbox <userId> : <colfam> : <messageId> : <timestamp> : <email-message> 12345 : data : 5fc38314-e290-ae5da5fc375d : 1307097848 : "Hi Lars, ..." 12345 : data : 725aae5f-d72e-f90f3f070419 : 1307099848 : "Welcome, and ..." 12345 : data : cc6775b3-f249-c6dd2b1a7467 : 1307101848 : "To Whom It ..." 12345 : data : dcbee495-6d5e-6ed48124632c : 1307103848 : "Hi, how are ..." or 12345-5fc38314-e290-ae5da5fc375d : data : : 1307097848 : "Hi Lars, ..." 12345-725aae5f-d72e-f90f3f070419 : data : : 1307099848 : "Welcome, and ..." 12345-cc6775b3-f249-c6dd2b1a7467 : data : : 1307101848 : "To Whom It ..." 12345-dcbee495-6d5e-6ed48124632c : data : : 1307103848 : "Hi, how are ..." è Same Storage Requirements
  • 33. Partial Key Scans Key   Descrip+on   <userId> Scan  over  all  messages   for  a  given  user  ID   <userId>-<date> Scan  over  all  messages   on  a  given  date  for  the   given  user  ID   <userId>-<date>-<messageId> Scan  over  all  parts  of  a   message  for  a  given  user   ID  and  date   <userId>-<date>-<messageId>-<attachmentId> Scan  over  all   a8achments  of  a   message  for  a  given  user   ID  and  date  
  • 34. Sequential Keys <timestamp><more key>: {CF: {CQ: {TS : Val}}} •  Hotspotting on Regions: bad! •  Instead do one of the following: •  Salting •  Prefix <timestamp> with distributed value •  Binning or bucketing rows across regions •  Key field swap/promotion •  Move <more key> before the timestamp (see OpenTSDB later) •  Randomization •  Move <timestamp> out of key
  • 35. Salting •  Prefix row keys to gain spread •  Use well known or numbered prefixes •  Use modulo to spread across servers •  Enforce common data stay close to each other for subsequent scanning or MapReduce processing 0_rowkey1, 1_rowkey2, 2_rowkey3 0_rowkey4, 1_rowkey5, 2_rowkey6 •  Sorted by prefix first 0_rowkey1 0_rowkey4 1_rowkey2 1_rowkey5 …
  • 36. Hashing vs. Sequential Keys •  Uses hashes for best spread •  Use for example MD5 to be able to recreate key •  Key = MD5(customerID) •  Counter productive for range scans •  Use sequential keys for locality •  Makes use of block caches •  May tax one server overly, may be avoided by salting or splitting regions while keeping them small
  • 38. Key Design Summary •  Based on access pattern, either use sequential or random keys •  Often a combination of both is needed •  Overcome architectural limitations •  Neither is necessarily bad •  Use bulk import for sequential keys and reads •  Random keys are good for random access patterns
  • 39. Example: Facebook Insights •  > 20B Events per Day •  1M Counter Updates per Second •  100 Nodes Cluster •  10K OPS per Node •  ”Like” button triggers AJAX request •  Event written to log file •  30mins current for website owner Web  ➜  Scribe  ➜  Ptail  ➜  Puma  ➜  HBase  
  • 40. HBase Counters •  Store counters per Domain and per URL •  Leverage HBase increment (atomic read-modify- write) feature •  Each row is one specific Domain or URL •  The columns are the counters for specific metrics •  Column families are used to group counters by time range •  Set time-to-live on CF level to auto-expire counters by age to save space, e.g., 2 weeks on “Daily Counters” family
  • 41. Key Design •  Reversed Domains •  Examples: “com.cloudera.www”, “com.cloudera.blog” •  Helps keeping pages per site close, as HBase efficiently scans blocks of sorted keys •  Domain Row Key = MD5(Reversed Domain) + Reversed Domain •  Leading MD5 hash spreads keys randomly across all regions for load balancing reasons •  Only hashing the domain groups per site (and per subdomain if needed) •  URL Row Key = MD5(Reversed Domain) + Reversed Domain + URL ID •  Unique ID per URL already available, make use of it
  • 43. Summary •  Design for Use-Case •  Read, Write, or Both? •  Avoid Hotspotting •  Consider using IDs instead of full text •  Leverage Column Family to HFile relation •  Shift details to appropriate position •  Composite Keys •  Column Qualifiers
  • 44. Summary (cont.) •  Schema design is a combination of •  Designing the keys (row and column) •  Segregate data into column families •  Choose compression and block sizes •  Similar techniques are needed to scale most systems •  Add indexes, partition data, consistent hashing •  Denormalization, Duplication, and Intelligent Keys (DDI)