exposebox / node-thrift2-hbase Goto Github PK
View Code? Open in Web Editor NEWAn HBase thrift wrapper for Node.js
License: ISC License
An HBase thrift wrapper for Node.js
License: ISC License
my key like 20170309204004FAS3KLP3524LIJFAE datetime+id,
hwo to scan by datetime start end and spicle id?
Thanks for your help
Below is my query which I am running against database containing only 140, 000 rows.
scan.add('patient_visit'); //scan all family info
scan.setLimit(50000); //search how much number rows
scan.setFilterString(
"SingleColumnValueFilter('patient_visit', 'assignedPointOfCare', =, 'binary:WH-ED')"
+" OR SingleColumnValueFilter('patient_visit', 'triageDatetime', >=, 'binary:20171116000000')"
+" AND SingleColumnValueFilter('patient_visit', 'triageDatetime', <=, 'binary:20171117000000')"
);
HBase.scan('idrive_dev_hbase', scan, function(err,data){ //get users table
if(err){
console.log('error:',err);
return;
}
console.log('Total rows scanned:', data.length);
console.timeEnd('dbsave')
});
Never get to see any result as query took longer than 10 mins and I ran out of patience.
HBase - 1.1.2
thrift.hbase - one comes with module. (0.98.4)
Am I doing something wrong?
I'm evaluating node-hbase for connecting to an HBase instance, but it's using REST rather than Thrift to connect.
Has Kerberos support for node-thirft2-hbase been discussed?
I compiled nodejs thrift bindings using thrift2 0.11.0 for HBase 1.2.6 and it is working fine (I am yet to test all interfaces). I have forked this repository as https://github.com/gsanjairaj/hbase-thrift2-client.
So, bindings for HBase 1.2.6 can be updated in this repository.
node-thrift2-hbase has a dependency on thrift@^0.10.0, this should probably be updated to thrift@^0.12.0 to avoid the dependency on ws 0.4.3.2 which has a high risk vulnerability.
Do you have Hbase.thrift for HBase: 1.1.2 Thrift: 0.9.3 ?
Right now the library works with just a single version of the thrift interface - maybe we should precompile more versions and make them accessible via configuration for the library.
Hi
We meet write bottleneck, and missing some data is acceptable in my project , so I think the better solution is to enable SKIP_WAL , but it seems it's not supported , could you help to add this feature ?
thanks a lot
xlwu
it`s the first time i got this design, is there any side effect for this design? for exameple, memory pressure, memory leak
like:
hbasePool.acquire(function(err, hbaseClient){
//**Shortly after the start can not executed here**
});
Shortly after the start, I can't put anything to hbase
and I find generic-pool _waitingClients size has been growing.
How to find the problem?
Thanks for your reply
hello,i use it,throw the error,then the program stoppted,how do it?thank you .
i can not find create api in the document, does it support ? and does it support hbase v2?
var put = function(region, obj, callback){
var key = obj.key;
var put = new Hbase.Put(key);
put.add('p', 'a', obj.a.toString());
put.add('p', 'b', obj.b.toString());
Hbase.put(tbName, put, function(err, success){
if(err){
logger.error('put miui_metok:probe_location:',err);
}
callback(err, success);
});
};
above as my code, but i find hbase thrift2 memory has been growing, and frequently triggered minor GC and full GC.
Scan method is OK.
Do you have any good advice?
Thanks for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.