You will need to know the location of binaries, configuration files, and libraries when working with HBase.
/etc/hbase/conf is the location for all of HBase’s configuration files.
HBase uses Debian Alternatives, so there are a number of symlinks to the configuration files.
/etc/hbase/conf is a symlink to /etc/alternatives/hbase-conf.
/etc/alternatives/hbase-conf is a symlink to /etc/hbase/conf.dist
/var/log/hbase contains all of the HBase log files.
The following configuration files are located in /etc/hbase/conf
You will need to know the location of binaries, configuration files, and libraries when working with Zookeeper.
Zookeeper 3.4.3 is a part of Cloudera Distribution Hadoop (CDH4).
/etc/zookeeper/conf is the location for all of Zookeeper’s configuration files.
Zookeeper uses Debian Alternatives, so there are a number of symlinks to the configuration files.
/etc/zookeeper/conf is a symlink to /etc/alternatives/zookeeper-conf.
/etc/alternatives/zookeeper-conf is a symlink to /etc/zookeeper/conf.dist
The following configuration files are located in /etc/zookeeper/conf
zoo.cfg is the main Zookeeper configuration file.
dataDir specifies the directory where znode snapshot files and transaction logs are stored. These files are important as you will need them to recover data.
The files located in dataDir should be backed up regularly.
A sample configuration file. One of the more interesting notes is about the autopurge.snapRetainCount configuration variable (http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance).
Use the init script to start, stop, restart, check the status of zookeeper, and initial zookeeper.
Binaries and Scripts
Script that cleans up the files created in dataDir. This script should be modified per installation and should be added to cron for periodic cleanup.