-
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. This page provides instructions for setting up a single-node or multi-node HBASE configuration.
-
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
-
Configure serviced docker dns for resolving hostnames
echo SERVICED_DOCKER_DNS=172.17.42.1 >> ~/.bashrc
source ~/.bashrc
-
-
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
- Install on 12.04 Ubuntu
- Download and install cloudera express
http://www.cloudera.com/content/support/en/downloads.html
chmod +x ./cloudera-manager-installer.bin
sudo ./cloudera-manager-installer.bin
- Login to http://localhost:7180 (admin:admin)
- Use Standard Install
- Configure - Cluster Installation
- Be sure to select Use Parcels, CDH and matched release.
- Install the Hbase service.
- Put the desired nodes into the configuration. For example you can use the host running the manager.
- Choose the CDH Services
- Ensure to select the Hbase, zookeeper, and HDFS
More detailed instructions here:
-
Install Cloudera Manager:
http://www.cloudera.com/content/support/en/documentation/manager/cloudera-manager-v4-latest.html
-
Install Cloudera Hbase:
-
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
-
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).