thrift-hbase-client

1.0.6 • Public • Published

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);
})

Readme

Keywords

none

Package Sidebar

Install

npm i thrift-hbase-client

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

447 kB

Total Files

8

Last publish

Collaborators

  • welefen