wget https://github.com/OpenTSDB/opentsdb/releases/download/v2.3.0/opentsdb-2.3.0.tar.gz
tar zxvf opentsdb-2.3.1.tar.gz
cd opentsdb-2.3.1
cp -r third_party/ ./build
./build.sh
cp ../src/opentsdb.conf ./
vim opentsdb.conf
改成如下:
tsd.network.port = 4212
tsd.http.cachedir = /data/lyc/opentsdb-2.3.1/build/cache
tsd.http.staticroot = /data/lyc/opentsdb-2.3.1/build/staticroot
tsd.storage.hbase.zk_basedir = /hbase
tsd.storage.hbase.zk_quorum = localhost
cd ../src
env COMPRESSION=NONE HBASE_HOME=/data/lyc/hbase-2.1.0 ./create_table.sh
启动:
./tsdb tsd --config=./opentsdb.conf
访问: