Skip to content

magiccrafter/hbase-async-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Asynchronous HBase Client POC for reading data from HBase Standalone Server and HBase instance part of Cloudera cluster.

version used:

 <dependency>
    <groupId>org.hbase</groupId>
    <artifactId>asynchbase</artifactId>
    <version>1.8.0</version>
  </dependency>

Prerequisites

All command are executed in the HBase shell for convenience.

  • Create a table with the following definition:
    hbase> create 'nvtest', 'f1'
  • Insert some data in the table:
    hbase> put 'nvtest', 'row1', 'f1:type', '15'
  • Verify data inserted correctly:
    hbase> get 'nvtest', 'row1', 'f1:type'
    expected output:
    hbase(main):010:0> get 'nvtest', 'row1', 'f1:type'
    COLUMN                                                 CELL
     f1:type                                               timestamp=1506671133214, value=15
    1 row(s) in 0.0140 seconds
    

Run

Replace the placeholders with the proper values and uncomment/comment the right method in main.

About

Asynchronous HBase Client Example Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages