You owe me big time, Keith.

2 snippets:
*

static* *private* HTablePool *hbase* = *getTablePool*();

HBaseConfiguration config = *new* HBaseConfiguration();

config.addResource(*new* Path("/home/user/configdata/system/hbase-site.xml"
));
Later i use the config:

HTable table=*null*;

Result r=*null*;

*try* {

table = *hbase*.getTable("contact");

Get g = *new* Get(Bytes.*toBytes*(someid)).setMaxVersions();

r = table.get(g);

table.close();

}

Then I use the result to retrieve data.


My site file:

<configuration>

<property>

<name>hbase.zookeeper.quorum</name>

<value>some-server</value>

</property>


On Wed, Oct 7, 2009 at 9:31 PM, Keith Thomas <[email protected]> wrote:

>
> All, sorry to bring this post back to life but I am still stuck :(
>
> If anyone has some example 0.20.0 configurations and code they could share
> with me regards to running a Java client on a different machine to HBase
> and
> Hadoop that would be brilliant :)
>
> Many thanks.
> --
> View this message in context:
> http://www.nabble.com/HBase-client-query-tp25752430p25797489.html
>  Sent from the HBase User mailing list archive at Nabble.com.
>
>

Reply via email to