-
Notifications
You must be signed in to change notification settings - Fork 26
HBASE setup
This page describes how to setup HBASE configuration to support developing or testing the Control Plane and Zenoss RM.
-
The hosts running hbase are dns resolvable
-
The hostname of the machine running hbase does not resolve to a loopback ip address
Resolving to the loopback causes the opentsdb client to fail. The loopback interface in the container is different than the loopback on the host.
-
Assuming you run a single-node, the docker bridge ip is 172.17.42.1 (ip addr |grep docker0)
The Zenoss template's opentsdb is configured by default to connect to zookeeper at 172.17.42.1:2182. This can be changed by editing the service template or definition. Pick your poison.
-
Java's installed and configured on the host.
-
Configure DNS on HOST
-
Install dnsmasq
sudo apt-get install dnsmasq
-
Edit /etc/hosts and change hostname mapping to a non-loopback ip address.
-
Restart dnsmasq
sudo /etc/init.d/dnsmasq restart
-
-
Setup HBASE
-
Download HBASE
wget -q -O- https://s3.amazonaws.com/pip.zenoss/binary_mirrors/hbase-0.94.16.tar.gz | tar -xz
-
Configure HBASE put the following in hbase-0.94.16/conf/hbase-site.xml
-
-
Start HBASE
hbase-0.94.16/bin/hbase master start
-
Download opentsdb
git clone git://github.com/OpenTSDB/opentsdb.git
-
Create tables
export HBASE_HOME=0.94.16 export COMPRESSION=NONE opentsdb/src/create_tables.sh
-
Configure environment
-
Setup serviced docker dns
echo SERVICED_DOCKER_DNS=172.17.42.1 >> ~/.bashrc
source ~/.bashrc
-
Install Cloudera Manager: http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/latest/Cloudera-Manager-Installation-Guide/cmig_install_path_A.html
Install HBASE: http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Installation-Guide/cdh4ig_topic_20.html
-
Go to the services directory (the one with the templates)
-
Using Zenoss.core for example, edit Zenoss.core/opentsdb/service.json
-
Change the context value, zkquorum to your desired servers (comma separated).