1.0.6 • Published 6 years ago

thrift-hbase-client v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago