https://github.com/welefen/thrift-hbase-client
hbase client generated by thrift
https://github.com/welefen/thrift-hbase-client
client hbase thrift
Last synced: 5 months ago
JSON representation
hbase client generated by thrift
- Host: GitHub
- URL: https://github.com/welefen/thrift-hbase-client
- Owner: welefen
- License: mit
- Created: 2018-07-04T01:45:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T02:37:04.000Z (over 6 years ago)
- Last Synced: 2025-08-31T07:26:14.132Z (10 months ago)
- Topics: client, hbase, thrift
- Language: Thrift
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
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);
})
```