Re: Example of spinning up a Hbase mock style test for integration testing in scala

2016-03-13 Thread Gaurav Agarwal
I am not aware of a scala heating am only aware of java testing with hbase. You can hbasetestingutility.java that is present in hbase testing java. Call there startminicluster or dfs cluster. Thanks On Mar 14, 2016 12:22 PM, "Nkechi Achara" wrote: > Hi, > > I am trying to find an example of how

Example of spinning up a Hbase mock style test for integration testing in scala

2016-03-13 Thread Nkechi Achara
Hi, I am trying to find an example of how to spin up a Hbase server in a mock or integration style, so I can test my code locally in my IDE. I have tried fake-hbase and hbase testing utility and receive errors especially when trying to start the cluster. Has anyone got any examples in scala to do

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 make

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 Hconne

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 master

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 regi