does hbase scan doubts

2016-03-13 Thread Shushant Arora
Does hbase scan or get is single threaded? Say I have hbase table with 100 regionservers. When I scan a key rangle say a-z(distributed on all regionservers), will the client make calls to regionservers in parallel all at once or one by one.First it will get all keys from one regionserver then

Re: use of hbase client in application server

2016-03-13 Thread Shushant Arora
2.DO I need to check whether Hconnection is still active before using it to create Htable instance. By still valid I meant that say I created Hconnection object and after 3-4 minutes when request came for any crud operation for some table and before getting Htable using from HConnection say

Re: use of hbase client in application server

2016-03-13 Thread Ted Yu
For #1, single Hconnection should work. For #2, can you clarify ? As long as the hbase-site.xml used to create the Hconnection is still valid, you can continue using the connection. For #3, they're handled by the connection automatically. For #4, the HTable ctor you cited doesn't exist in

use of hbase client in application server

2016-03-13 Thread Shushant Arora
I have a requirement to use long running hbase client in application server. 1.Do I need to create multiple HConnections or single Hconnection will work? 2. DO I need to check whether Hconnection is still active before using it to create Htable instance. 3.DO I need to handle region split and