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 20:50:29 GMT
Alright I looked at the code inside HConnectionManager, along as the
hbase.zookeeper.quorum value is different for each cluster you're good
with 0.20.5

Starting in 0.89 it also checks for the root znode and client port, so
you can host multiple hbase clusters on the same zookeeper ensemble.
For example, at StumbleUpon we have 1 ensemble per data center.


On Wed, Jul 7, 2010 at 1:44 PM, Jun Li <jltz922181@gmail.com> wrote:
> Hi JD,
> Do you know how to make it work for the 0.20.5, the latest version, as
> I am planning to upgrade my installation from HBase0.20.0 to
> HBase0.20.5 anyway?
> Jun
> On Wed, Jul 7, 2010 at 10:49 AM, Jean-Daniel Cryans <jdcryans@apache.org> wrote:
>> 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
>> J-D
>> 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