Skip to content

ripjar/thrift-hbase-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thrift-hbase-client

Hbase.thrift from https://raw.githubusercontent.com/apache/hbase/master/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift

thrift --gen js:node Hbase.thrift

install

npm i thrift-hbase-client

use

const HBase = require('thrift-hbase-client');
const instance = new HBase({
  host: '',
  port: 9090
});

instance.getRow({table: 'tableName', rowkey: key}).then(data => {
  console.log(data);
}).catch(err => {
  console.error(err);
})

instance.putRow({
  table: 'tableName',
  rowkey: 'welefen_1',
  columns: {
    'value:default': 'welefen_1'
  }
}).then(data => {
  console.log(data);
}).catch(err => {
  console.error(err);
})

About

hbase client generated by thrift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Thrift 78.9%
  • JavaScript 21.1%