Giter Club home page Giter Club logo

hbase-code-samples's Introduction

HBase-Code-Samples

A series of demos using HBase and Phoenix on HBase

Using HBase-Code-Samples

There are four packages supporting the samples I tend to run the code from my IDE, but you can JAR these up or call from other tools

HBase Package

HBaseEngine calls the multi-threaded loader. Set the parameters for the number of rows and number of threads and execute. This was built to load millions of rows quickly into HBase. It will generate random data for you. HBaseSingleThreadedLoader calls the HBaseLoadTable, HBaseSearchTable, and then the HBaseDeleteTable. This is designed to test several of the API's in HBase

Image Package

HBaseImageEngine takes in a folder with images in it. It will load all the images into HBase and alert if the image matches an existing image with a different name. If the image name is the same, it will not store it twice. HBaseReadImage will scan for a specific image you request and convert it from a byte array back to an image again. A quick test to make sure the byte conversion works both ways

Phoenix Package

PhoenixHBaseLoader takes in several parameters like number of rows and zookeeper location. It will randomly generate data and load in the number of rows you specific into Phoenix on HBase (You must have Phoenix enabled in your cluster first - see Apache Phoenix install guide) PhoenixHBaseTest is a quick test program to test connection and table creation and load

Util Package

Several utilities

hbase-code-samples's People

Contributors

emizell 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.