There are several configuration files that need to be set up for HBase and ZooKeeper.
From the file you downloaded in Download Companion Files,
extract the files in configuration_files/hbase
and configuration_files/
zookeeper
directories to two temporary directories.
In the respective temporary directories, locate the following files and modify the
properties based on your environment. Search for TODO
in the files for the
properties to replace.
Table 9.1. zoo.cfg
Variable | Example | Description |
---|---|---|
server.1 |
|
Enter the 1st ZooKeeper hostname |
server.2 |
|
Enter the 2nd ZooKeeper hostname |
server.3 |
|
Enter the 3rd ZooKeeper hostname |
Table 9.2. hbase-site.xml
Variable | Example | Description |
---|---|---|
hbase.rootdir |
|
Enter the NameNode server FQDN. |
hbase.master.info.bindAddress |
|
Enter the HBase Master server FQDN |
hbase.zookeeper.quorum |
|
Comma separated list of Zookeeper servers (match to what is specified in zoo.cfg but without portnumbers) |
Replace the installed ZooKeeper configs with the modified ZooKeeper configuration files and set appropriate permissions.
rm -rf $ZOOKEEPER_CONF_DIR/*
<Copy all the config files to
$ZOOKEEPER_CONF_DIR
>chown -R $ZOOKEEPER_USER:$HADOOP_GROUP $ZOOKEEPER_CONF_DIR/../ chmod -R 755 $ZOOKEEPER_CONF_DIR/../
Replace the installed HBase configs with the modified HBase configuration files and set appropriate permissions.
rm -rf $HBASE_CONF_DIR
<Copy all the config files to
$HBASE_CONF_DIR
>chown -R $HBASE_USER:$HADOOP_GROUP $HBASE_CONF_DIR/../ ; chmod -R 755 $HBASE_CONF_DIR/../