HBase default REST API

HFactory Tools brings greater simplification and a much better usability than the HBase default REST API (formerly known as Stargate). HFactory Tools has been built with the expectations of the application developer in mind, and is designed to abstract away the low-level intricacies complexities of HBase to make it more widely accessible.

Scala-based DSL

With HTalk, HFactory Tools includes a high-level, expressive DSL for HBase CRUD operation. HTalk significantly reduces boilerplate code, and its power can be observed with the following example:

"user" put ("project1", "name", "YourProject") execute

Entity vs table-level API

HBase default REST API firmy sits at the table level. While this is powerful, it is also quite remote from application and business requirements. Instead, HFactory Tools offers an entity-centric API more suitable to web wervices and application development than this table-level implementation. And going one step further, HFactory Tools fully automates the generation of the REST API in the standard Swagger / OpenAPI 2.0 format from the description of the entities.

Decoding of bytecode arrays

HBase default REST API lets you manage the complexity of NoSQL serialization. This is obviously feasable, but painful and best avoided unless you have a special fondness for Base64 encoding… Such functionality is included in HFactory Tools, which lets you focus on higher-level developments. HFactory Tools automatically converts HBase byte arrays into a strongly-typed, entity-oriented interface which enables you to interact with standard JSON.

Example output with HFactory Tools REST API


{"id":"Motor1_current_average_abs","deviceId":"Device1","systemId":"System1","description":"Motor 1's average current consumption","tags":

Example output with HBase default REST API

curl -H "Accept: application/json" http://zeppelin:9999/sensor/System1%00Device1%00Motor1_current_average_abs