5. HRegionServer
Hregion Server ClusterHregion Server ClusterHregion Server ClusterHregion Server Cluster
Hregion ServerHregion ServerHregion ServerHregion Server 1111 Hregion ServerNHregion ServerNHregion ServerNHregion ServerNHregion ServerHregion ServerHregion ServerHregion Server 2222 . . .. . .. . .. . .
H W A LH W A LH W A LH W A L
HRegionNHRegionNHRegionNHRegionN. . .. . .. . .. . .
MemStoreMemStoreMemStoreMemStore
Hregion ServerHregion ServerHregion ServerHregion Server
S t o r eS t o r eS t o r eS t o r e
HRegionHRegionHRegionHRegion
S t o r eS t o r eS t o r eS t o r e1111
S t o r eS t o r eS t o r eS t o r e3333 StoreNStoreNStoreNStoreN
S t o r eS t o r eS t o r eS t o r e2222
H F i l eH F i l eH F i l eH F i l e
StoreFileStoreFileStoreFileStoreFile 1111
H F i l eH F i l eH F i l eH F i l e
StoreFileStoreFileStoreFileStoreFile 2222
H F i l eH F i l eH F i l eH F i l e
StoreFileStoreFileStoreFileStoreFile 1111
. . .. . .. . .. . .
10. D a taD a taD a taD a ta D a taD a taD a taD a taD a taD a taD a taD a ta
M e taM e taM e taM e ta
((((OptionalOptionalOptionalOptional))))
M e taM e taM e taM e ta
((((OptionalOptionalOptionalOptional))))
File InfoFile InfoFile InfoFile Info
DataDataDataData
In d e xIn d e xIn d e xIn d e x
MetaMetaMetaMeta
In d e xIn d e xIn d e xIn d e x
TrailerTrailerTrailerTrailer
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
K e yK e yK e yK e y
V a lu eV a lu eV a lu eV a lu e
M agicM agicM agicM agic
StoreFile/HFile(二)
K e yK e yK e yK e y
LengthLengthLengthLength
V a l u eV a l u eV a l u eV a l u e
LengthLengthLengthLength
R o wR o wR o wR o w
LengthLengthLengthLength
R o wR o wR o wR o w
ColumnColumnColumnColumn
FamilyFamilyFamilyFamily
LengthLengthLengthLength
ColumnColumnColumnColumn
FamilyFamilyFamilyFamily
ColumnColumnColumnColumn
QualifieQualifieQualifieQualifie
rrrr
T i m eT i m eT i m eT i m e
S t a m pS t a m pS t a m pS t a m p
K e yK e yK e yK e y
T y p eT y p eT y p eT y p e
V a l u eV a l u eV a l u eV a l u e
K e yK e yK e yK e y