Java HBase Program configuration -
i writing java program write output hbase. have question how configure hbase in driver class. configure this:
conf.set("hbase.zookeeper.quorum.", "localhost"); conf.set("hbase.zookeeper.property.clientport", "2222"); but if using hbase cluster , regionservers start zookeeper, how can configure this? this??
conf.set("hbase.zookeeper.quorum.", "regionserver1"); conf.set("hbase.zookeeper.quorum.", "regionserver2"); conf.set("hbase.zookeeper.quorum.", "regionserver3"); ... conf.set("hbase.zookeeper.property.clientport", "2222"); is correct?
the hbase.zookeeper.quorum should
conf.set("hbase.zookeeper.quorum","regionserver1,regionserver2,regionserver3"); usually define in xml file hbase-site.xml
Comments
Post a Comment