暗能星系

    • 登录
    • 搜索

    Hbase内部结构

    大数据
    1
    4
    9
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      anneng 最后由 编辑

      1.Hbase的数据写入过程
      88f17676-af57-484e-bcd1-ee9224ae2abe-image.png
      When a write is made, by default, it goes into two
      places: the write-ahead log ( WAL ), also referred to as the HL og, and the MemStore (figure 2.1). The default behavior of HB ase recording the write in both places is in order to maintain data durability. Only after the change is written to and confirmed in
      both places is the write considered complete.
      The MemStore is a write buffer where HB ase accumulates data in memory before a permanent write. Its contents are flushed to disk to form an HF ile when the MemStore fills up. It doesn’t write to an existing HF ile but instead forms a new file on every flush.The HFile is the underlying storage format for HB ase. HF iles belong to a column family,and a column family can have multiple HF iles. But a single HF ile can’t have data for mul-tiple column families. There is one MemStore per column family.
      The WAL is a file on the underlying file system. A write isn’t considered successful until the new WAL entry is successfully written. This guarantee makes HB ase as durable as the file system backing it. Most of the time, HB ase is backed by the Hadoop Distributed Filesystem ( HDFS ).

      2.Hbase数据读取过程
      HB ase has an LRU cache for reads.This cache, also called the BlockCache, sits in the JVM heap alongside the MemStore.
      d2ce2773-43e7-440c-93a1-8f1c8048cee0-image.png

      3.HFiles的归并
      A minor compaction folds HFiles together,creating a larger HF ile from multiple smaller HFiles
      4c8a6ee6-1a7c-4765-9bf1-a00be55f4e1f-image.png
      When a compaction operates over all HF iles in a column family in a given region, it’s called a major compaction.
      4.Hbase的表结构
      bfd6696a-9f93-4a0d-b14d-8e9e85856ef9-image.png
      dd5adb3e-e092-41e4-9ce8-1d14da7020e4-image.png

      逻辑视图
      86257330-e54f-4287-b0f5-3d122b355aba-image.png
      物理视图:面向列的存储
      93fd177c-5a1b-40ff-bbfb-d744f8de6a38-image.png

      1 条回复 最后回复 回复 引用 0
      • A
        anneng 最后由 编辑

        Hbase和HDFS的关系
        491719cd-5886-4101-8fc0-f222ff1e56a9-image.png

        1 条回复 最后回复 回复 引用 0
        • A
          anneng 最后由 编辑

          如何进行分布式访问:
          848e8a09-e410-4454-bc19-288438000a5c-image.png

          1 条回复 最后回复 回复 引用 0
          • A
            anneng 最后由 编辑

            https://www.corejavaguru.com/bigdata/hbase-tutorial/architecture
            c5d061f1-69c3-43ae-a6b9-48c0f3d7210d-image.png

            1 条回复 最后回复 回复 引用 0
            • First post
              Last post
            Powered by 暗能星系