Since the HBase Master may move around, clients bootstrap by looking ZooKeeper. Thus clients
require the ZooKeeper quorum information in a hbase-site.xml
that
is on their CLASSPATH
.
If you are configuring an IDE to run a HBase client, you should
include the conf/
directory on your classpath.
Minimally, a client of HBase needs the hbase, hadoop, guava, and zookeeper jars
in its CLASSPATH
connecting to HBase.
An example basic hbase-site.xml
for client only
might look as follows:
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>hbase.zookeeper.quorum</name> <value>example1,example2,example3</value> <description>The directory shared by region servers. </description> </property> </configuration>