Giter Club home page Giter Club logo

storm-hbase's Introduction

Storm-HBase

Storm-HBase is a combination of Storm and HBase. This library will let you use HBase as a spout within Storm.

Notes

HBaseSpout is used to continuously read stream data from HBase cluster according to the range of [start_timestamp, stop_timestamp]:

  • If start_timestamp is set to 0, HBaseSpout will read data from 3 minutes ago by default; otherwise it will read data from the specified start_timestamp.
  • If stop_timestamp is set to 0, HBaseSpout will read data unit now and keep on reading as time goes on by default; otherwise it will read data unit the specified stop_timestamp.

All the configuration options can be found in src/main/resources/storm.properties and src/main/resources/hbase.properties files. You can also custom them or some of them if necessary.

HBaseSpout is based on the following assumptions:

  • the rowkey of HBase table consists of [shardingkey, timestamp, ...].
  • the shardingkey takes up the 1st byte of rowkey, which means the data partitions number of HBase table and usually is a short type number.
  • the timestamp takes up the 2nd to 5th bytes of rowkey, which is an UNIX timestamp in second.

Getting help

The code implementation of spout: HBaseSpout.java.

The test case of spout: HBaseSpoutTest.java.

How to use HBaseSpout, please refer to: DumpToHBaseTopology.java or OutputTopology.java.

Contributors

storm-hbase's People

Contributors

ypf412 avatar

Watchers

 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.