Giter Club home page Giter Club logo

hbasewebnavi's Introduction

#Introduction

Are you crazy about the hbase shell output like below? You have no idea what the hell the hex string is, right?

hbase shell

Please try the HBase Table Navigator, it is a lightweight and extensible web app. you can get readable output from hbase table. it provides three functions:

  1. get
  2. scan
  3. count
    Below picture demostrates how the 'scan' works. In the result section of the picture, it lists 20 random rows in hbase table 'TEST'. only 4 rows are visible in the picture, others are truncated. more user friendly than hbase shell, isn't it? :) demo scan

#How it works?

I don't want to put many words on the web app as it is simple. The core of the app is an Interpreter interface, it has two methods:

String interpretRowkey(String tableName, byte[] rowkey);
String interpretColumnValue(String tableName, byte[] rowkey, byte[] cf, byte[] column, long timestamp, byte[] value);

the web app framework will call these two methods to interpret the row key, column value in hbase table and convert them to human readable string format.

Since different application stores data in different format, so you may want to add your own Interpreter. Please edit below line in conf.properties to add your own Interpreter.
interpreter.class=com.xl.hbase.InterpreterImpl

#Installation Install this app is very easy,

  1. create a web app in eclipse.
  2. import the source code in this repository.
  3. add your own Interpreter.
  4. export a war and deploy it to any web server.
  5. give it a try via http://yourhost/hbasewebnavi/verify.jsp.

hbasewebnavi's People

Contributors

xianli avatar

Stargazers

李亮 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.