Ubuntu 16.04
upgrade it
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot now
install JDK 8
sudo apt-get install -y default-jdk
wget http://apache.claz.org/hbase/stable/hbase-1.4.10-bin.tar.gz
tar xzvf hbase-1.4.10.tar.gz
cd hbase-1.4.10
echo 'export JAVA_HOME=/usr' >> conf/hbase-env.sh
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///home/ubuntu/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/ubuntu/zookeeper</value>
</property>
</configuration>
bin/start-hbase.sh
./bin/hbase shell
hbase(main):001:0> status
1 active master, 0 backup masters, 1 servers, 0 dead, 2.0000 average load
fetch some dependencies
sudo apt-get install -y gnuplot build-essential python autoconf
download and install pkg
wget https://github.com/OpenTSDB/opentsdb/releases/download/v2.4.0/opentsdb-2.4.0_all.deb
dpkg -i opentsdb-2.4.0_all.deb
create the tables
vim /usr/share/opentsdb/tools/create_table.sh
create '$TSDB_TABLE',
{NAME => 't', VERSIONS => 1, COMPRESSION => '$COMPRESSION', BLOOMFILTER => '$BLOOMFILTER', DATA_BLOCK_ENCODING => '$DATA_BLOCK_ENCODING', TTL => '$TSDB_TTL'}
==>>
create '$TSDB_TABLE',
{NAME => 't', VERSIONS => 1, COMPRESSION => '$COMPRESSION', BLOOMFILTER => '$BLOOMFILTER', DATA_BLOCK_ENCODING => '$DATA_BLOCK_ENCODING'}
env COMPRESSION=NONE HBASE_HOME=path/to/hbase /usr/share/opentsdb/tools/create_table.sh
start OpenTSDB
/etc/init.d/opentsdb start
Tips
tsd.core.auto_create_metrics = true