OpenTSDB安装极简备忘

1. Download

https://github.com/OpenTSDB/opentsdb/releases

2. Install Depenency: Gnuplot

yum -y install gnuplot

3. Install

rpm -ihv opentsdb-2.2.1.rpm

4. Configure

vim /etc/opentsdb/opentsdb.conf
    # default value is "/hbase", change it according to your cluster configuration
    tsd.storage.hbase.zk_basedir = /hbase-unsecure
    # change it according to your cluster configuration
    tsd.storage.hbase.zk_quorum = your-zk-server1,your-zk-server2,your-zk-server3
    # not requried, it can help you insert data immediately without registering metrics first 
    tsd.core.auto_create_metrics = true

5. Create Log Directory

mkdir -p /var/log/opentsdb
chown -R opentsdb:hadoop /var/log/opentsdb

6. Initialize Database

env COMPRESSION=NONE HBASE_HOME=/usr/hdp/current/hbase-client/ /usr/share/opentsdb/tools/create_table.sh

6. Startup

sudo -u opentsdb nohup tsdb tsd > /var/log/opentsdb/opentsdb.out &

本文原文链接: http://blog.csdn.net/bluishglc/article/details/53726911 转载请注明出处。

你可能感兴趣的:(安装,配置,opentsdb)