I'd say give it a try. It might just work. If you set hbase.master to be 'local', it runs all in a single process (master and regionserver(s)). Study the HMaster main to see what you need to do to make a cluster fly and the HBaseCluster pointed to by Ryan below. If you find you need to change something to make it work, you can do it in a subclass -- master and regionserver have had work done to make them subclassable (See http://wiki.apache.org/hadoop/Hbase/FAQ#14 for subclassing example pointer) -- and/or file an issue so we can add in the changes you needed to make.

St.Ack



Ryan Lynch wrote:
Doesn't HBaseClusterTestCase satisfy a development/unit testing
scenario?

-----Original Message-----
From: Jean-Daniel Cryans [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 7:38 AM
To: [email protected]
Subject: Re: hbase as an embedded.

But having an embedded version would enable easy programming like with
Google's "development environment" they have with App Engine. A good
nice to
have.

J-D

On Mon, Jun 23, 2008 at 10:32 AM, Bryan Duxbury <[EMAIL PROTECTED]>
wrote:

Certainly, it would be possible to make a version of HBase that could
be
embedded. At the moment, however, there would be an immense number of
things
that would have to change for embedding to work.

-Bryan


On Jun 23, 2008, at 6:43 AM, Shiraz Memon wrote:

 Hi,
Thanks for your answer.

Yes I mean hashmap (more simplistic solution), but hbase gives you
power
of
querying by row keys or complex queries via hql and nevertheless can
avail
bigtable like features.

Shiraz

On Mon, Jun 23, 2008 at 3:18 PM, Jean-Daniel Cryans
<[EMAIL PROTECTED]>
wrote:

 Hi Shiraz,
By "embedded", do you mean using HBase like one would use an
java.util.HashMap?

J-D


On Mon, Jun 23, 2008 at 6:44 AM, Shiraz Memon
<[EMAIL PROTECTED]>
wrote:

 Hi
very short...
Can we use hbase as an embedded version inside java program?

thanks in advance,
Shiraz



Reply via email to