Coder Social home page Coder Social logo

yl-hbase-rep's Introduction

yl-hbase-rep

  • hbase snapshot、replication 实现机制、源码解析
  • replication peer 的实现代码
  • bulkload code example

1 snapshot/replication 实现机制

  • snapshot 实现机制、快照文件生成过程,请参考 snapshot 内容
  • replication 实现机制,源码解析,请参考 replication 内容

2 replication peer 的实现

  • 参考 lily 二级索引的实现机制,重新实现了一个简化版本的 replication peer
  • replication peer server 从源 hbase 集群同步接收 WAL edits,并写入目标存储(例如:solr / kafka 等)
  • 实际上 replication peer 类似于一个 region server 角色

3 bulkload example

  • bulkload 方式从 hive import hbase 有现成的 sql 可以使用
  • 如果输入是 CSV 文件 或 parquet 文件,当然也可以先建立一个 hive 外部表,再从hive import to hbase
  • 也可以通过 coding 的方式,通过 bulkload 生成 hfile 然后再 merge 到 hbase

致谢

yl-hbase-rep 实现机制参考了 lily indexer

wx : yilong2001

yl-hbase-rep's People

Contributors

yilong2001 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.