hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Haidinyak <phaidin...@local.com>
Subject RE: HBase client side configuration example?
Date Wed, 02 Feb 2011 22:34:09 GMT
I connect to HBase from Java using the following

    final Configuration configuration = HBaseConfiguration.create();

    configuration.set("hbase.zookeeper.quorum", "caiss01a,caiss01b"));  // - Our two zookeeper
    configuration.set("hbase.zookeeper.property.clientPort", "2222"));  // - Port they are
listening on.

    m_logger.info("Opening myTable Tables");
    m_myTable = new HTable(configuration, "myTable");

Hope it helps


-----Original Message-----
From: Jérôme Verstrynge [mailto:jverstry@gmail.com] 
Sent: Wednesday, February 02, 2011 1:58 PM
To: user@hbase.apache.org
Subject: HBase client side configuration example?


I have managed to successfully install HBase on a remote linux node 
(using Cloudera's CDH3). The next step is to implement a small Java 
application to connect to it. I have tried to find some documentation to 
configure HBaseConfiguration, but I could not find proper examples for 
hbase-site.xml and hbase-default.xml. Does anyone have any to share?



View raw message