1- Download the latest stable version of OpenTSDB from:
https://github.com/OpenTSDB/opentsdb/releases
2- Install Java 8 on Ubuntu:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
3- Configure Java Environment:
$ sudo apt-get install oracle-java7-set-default
4- Set JAVA_HOME:
$ sudo echo "export JAVA_HOME=\"/usr/lib/jvm/java-7-whatever/\"" >> ~/.bashrc
5- Install AUTORECONF
$ sudo apt-get install dh-autoreconf
6- Install gnuplot
$ sudo apt-get install gnuplot
7- Download hbase from:
http://apache.dattatec.com/hbase/stable/
And install:
tar -xzf hbase-1.1.5-bin.tar.gz
8- Edit config file conf/hbase-site.xml and set the following parameters:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///home/home/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/home/zookeeper</value>
</property>
</configuration>
9- Run bin/start-hbase.sh (bin/stop-hbase.sh to stop)
10 - Install opentsdb package
sudo dpkg -i opentsdb*.deb
11- Verify settings in /etc/opentsdb/* (vi /etc/opentsdb/*)
12- Prepare environment:
env COMPRESSION=NONE HBASE_HOME=/home/home/Downloads/hbase-1.1.5
./usr/share/opentsdb/tools/create_table.sh
13 - Start opentsdb
(cd /etc/init.d/ && ./opentsdb start)
14 - If you need to stop openstdb:
(cd /etc/init.d/ && ./opentsdb stop)
Enjoy!