hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Charles <eric.char...@u-mangate.com>
Subject Re: hbase-book on github
Date Tue, 14 Jun 2011 08:05:17 GMT
Hi Lars,

A base unit test class which setups the embedded HBase cluster with 
HBaseTestingUtility, ant the chapter tests being gathered in a JUnit 
Suite is an option (you can tell maven to only run the *IntegrationTest 
class for example, user would invoke "mvn test" for all tests or "mvn 
test -Dtest=Chapter1IntegrationTest").

The approach you take (main with separate cluster) has some advantage: 
you can see afterwards the result of your actions in the cluster via the 
HBase console, it also "validate" the reader can install HBase.

After rethinking about it, I think the current approach is best :)

Btw, I can find the start-hush.sh to launch the cluster, but not the 
script that run the examples.

- Eric

On 14/06/11 08:57, Lars George wrote:
> Hi Eric,
> Sorry for the late reply. More inline...
> I've given your hbase-book link on github [1] to Ioan (GSoC2011, see
>> previous mail I just sent) to help him dig into the HBase API.
> Great! Let me know if you find issues along the way.
>> I've also checked-out your repo to learn more, the basic stuff, and the
>> less basic such as coprocessors...
>> Great work! Tanks a bunch :) - Tks also to Patrick Angeles, I saw him in
>> the commit log.
>> I had also prepared some HBase samples for Ioan on [2] where I use the
>> HBaseTestingUtility that allows to run the code without the need for a real
>> separate cluster. If I understand well, I need to run a separate local
>> cluster to run the hbase-book code?
> Yes, the book helps you in a Quick Start section to start a local,
> stand-alone setup. After that the examples can be run against it.
>> Btw, companion-code to books (o'reilly, manning...) use some main classes,
>> I would better have some test classes (junit). just my 2-cent...
> I was thinking about how to structure this too, but am not sure what the
> usual approach is. I used Maven and added a small script that helps to run
> the examples. It simply sets up the classpath and runs the given example
> code. This seems real easy for the reader to follow along. We will see how
> this goes I think.
> Cheers,
> Lars
> Tks,
>> - Eric
>> [1] https://github.com/larsgeorge/hbase-book/
>> [2] https://github.com/echarles/t4f-hbase

View raw message