hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: How to specify HBase cluster end-points from HBase client code in HBase 0.20.0
Date Wed, 07 Jul 2010 17:49:46 GMT
Passing the hbase.zookeeper.quorum config will do exactly what you
need in 0.89, but I'm not sure that it will work in 0.20


On Wed, Jul 7, 2010 at 10:46 AM, Jun Li <jltz922181@gmail.com> wrote:
> Hello,
> In my current application environment, I need to have two HBase
> clusters running in two different racks, to form a fault-tolerant
> group to tolerate power failure. Then I have an HBase client, which is
> sitting outside of these two clusters,  to make invocation to the
> these two HBase clusters.
> In my previous work, I just need to simply use the class of “HTable”,
> and passed in an instance of HBaseConfiguration. And To construct the
> HBaseConfiguration instance, I just need to pass in the path
> information of the “hbase-site.xml”. And in the hbase-site.xml, there
> is only one parameter called “hbase.rootdir” that need to configure.
> Before HBase0.20.0, there used to be a parameter called “hbase.master”
> that I can specify. But in HBase0.20.0, I found that it does not work
> any more, likely because that the HBase master is managed by the
> Zookeeper, and the master node now becomes dynamic.
> Could you show me what are the APIs that I need to use, in order for
> me to specify the end-point address of the HBase cluster, for the
> HBase client invocation?
> Regards,
> Jun

View raw message