|
|
-
How to implement tests for python based application using Hbase-thrift interface
Damien Hardy 2012-01-30, 10:10
Hello,
I wrote some code in python using Hbase as image storage. I want my code to be tested independently of some external Hbase full architecture so my question is : Is there some "howto" helping on instantiate a temporary local minicluster + thrift interface in order to pass python (or maybe other language) hbase-thrift based tests easily.
Cheers,
-- Damien
-
Re: How to implement tests for python based application using Hbase-thrift interface
N Keywal 2012-01-30, 11:13
Hi Damien,
Can't say for the Python stuff. You can reuse or extract what you need in HBaseTestingUtility from the hbase test package, this will allow you to start a full Hbase mini cluster in a few lines of Java code.
Cheers,
N. On Mon, Jan 30, 2012 at 11:10 AM, Damien Hardy <[EMAIL PROTECTED]> wrote:
> Hello, > > I wrote some code in python using Hbase as image storage. > I want my code to be tested independently of some external Hbase full > architecture so my question is : > Is there some "howto" helping on instantiate a temporary local > minicluster + thrift interface in order to pass python (or maybe other > language) hbase-thrift based tests easily. > > Cheers, > > -- > Damien > >
-
Re: How to implement tests for python based application using Hbase-thrift interface
Stack 2012-01-31, 21:22
On Mon, Jan 30, 2012 at 3:13 AM, N Keywal <[EMAIL PROTECTED]> wrote: > Hi Damien, > > Can't say for the Python stuff. > You can reuse or extract what you need in HBaseTestingUtility from the > hbase test package, this will allow you to start a full Hbase mini cluster > in a few lines of Java code. >
HBaseTestingUtility is missing a main. We should add one that allows you specify how many regionservers and masters to run. If you had that, you could just run that and start a thrift server all w/ appropriate configs in place. Without it, you'll need to write a bit of java to get it off the ground as nkeywal says (or jython it).
St.Ack
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext