Comments (6)
But while comparing with HBase rest server the response time for fetching a single row is 4 times compare to rest server.
Can you show me those specific response times compare to HBase rest server? How much is the gap?
from node-hbase-client.
I am executing following command:
http://10.0.2.15:3000/hbase/cars/row1
For simulating this, I have created a table in hbase name cars and inserted some data. One key can be row1.
For example:
create 'cars', 'vi'
put 'cars', 'row1', 'vi:make', 'bmw'
put 'cars', 'row1', 'vi:model', '5 series'
and so, on.
hbase(main):001:0> scan 'cars'
ROW COLUMN+CELL
row1 column=vi:make, timestamp=1502988699898, value=bmw1
row1 column=vi:model, timestamp=1502988771217, value=5 series
row2 column=vi:make, timestamp=1502961924851, value=foo
row2 column=vi:model, timestamp=1502961924851, value=18
row3 column=vi:make, timestamp=1502988824518, value=5
row3 column=vi:model, timestamp=1502988787756, value=5
3 row(s) in 0.8130 seconds
...
I will be collecting the exact response time in few minutes.
from node-hbase-client.
Script ./hbase_getUsinRestAPI.sh execution finished
real 0m0.139s
user 0m0.079s
sys 0m0.038s
[devlab_user@dl-hadoop1 ~]$ time ./hbase_getUsinNodeJS.sh -r 5
Displaying all rows of table IVRHistory
getRow finished
Script ./hbase_getUsinNodeJS.sh execution finished
real 0m0.335s
user 0m0.042s
sys 0m0.041s
[devlab_user@dl-hadoop1 ~]$ time ./hbase_getUsinNodeJS.sh -r 500
Displaying all rows of table IVRHistory
getRow finished
Script ./hbase_getUsinNodeJS.sh execution finished
real 0m27.338s
user 0m1.645s
sys 0m2.568s
[devlab_user@dl-hadoop1 ~]$ time ./hbase_getUsinRestAPI.sh -r 500
Displaying all rows of table IVRHistory
getRow finished
Script ./hbase_getUsinRestAPI.sh execution finished
real 0m6.225s
user 0m1.520s
sys 0m2.493s
[ritesh@localhost bin]$ time ./hbase_getUsinRestAPI.sh -r 50
Displaying all rows of table ivr
getRow finished
Script ./hbase_getUsinRestAPI.sh execution finished
real 0m1.073s
user 0m0.131s
sys 0m0.163s
[ritesh@localhost bin]$ jps\
^C
[ritesh@localhost bin]$ vi hbase_getUsinNodeJS.sh
[ritesh@localhost bin]$ time ./hbase_getUsinNodeJS.sh -r 50
Displaying all rows of table ivr
getRow finished
Script ./hbase_getUsinNodeJS.sh execution finished
real 0m3.092s
user 0m0.129s
sys 0m0.192s
from node-hbase-client.
hbaseNodeJSCurlCommand.txt
hbaseRestCurlCommand_1.txt
I am sharing two curl script.
- time ./hbase_getUsinNodeJS.sh -r 50 //This will connect to our application on port 3000
2)time ./hbase_getUsinRestAPI.sh -r 50 //This will connect to hbase rest server on port 8080
from node-hbase-client.
Hi Yuan,
can you help me on this.please reply.
Thanks
from node-hbase-client.
Hi Yuan,
Hope are you doing well. I thought, I can ping you. Actually, I am new to nodejs. Let me know, if you need my assistance on this. If you want you can assign me some work related to this.
Thanks
from node-hbase-client.
Related Issues (20)
- How to set the parameter hbase.client.keyvalue.maxsize to increase entry size ?
- hbase-rpc-client sometimes fails getting region info HOT 1
- 阿里啊,快跟新啊
- socket doesn't release, may block the request
- 使用Buffer.from替代utf8.encode
- ConnectionClosedException on newer nodejs HOT 2
- Update tests HOT 1
- Getting value's timestamp HOT 2
- 0.95.x and protobuf HOT 4
- Scan最多只扫出8000多条数据? HOT 2
- 现在支持反向scan吗 ? HOT 13
- hbase-client 如何get一个row的多版本的数据 HOT 1
- problem connection [hbase-client] zookeeper watch error: Exception: NO_NODE[-101] HOT 5
- api like `show tables` HOT 2
- Closing connections HOT 1
- 1.1.2 该用什么去连 HOT 2
- FamilyFilter can't be created on the client
- kerberos
- TypeError: WritableUtils.writeString is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-hbase-client.