首页 > 代码库 > opentsdb basic install
opentsdb basic install
git clone git://github.com/OpenTSDB/opentsdb.git
cd opentsdb
./build.sh
env COMPRESSION=NONE HBASE_HOME=/data/hbase123 ./src/create_table.sh
在生产环境中,最好设定一种压缩格式,如LZO,GZIP,SNAPPY。
./src/opentsdb.conf
tsd.http.cachedir - Path to write temporary files to
tsd.http.staticroot - Path to the static GUI files found in ./build/staticroot
tsd.storage.hbase.zk_quorum - If HBase and Zookeeper are not running on the same machine, specify the host and port here.
从SRC复制一份opentsdb.conf到build目录下,然后编缉配置以上三个项即可。
tsdtmp=${TMPDIR-‘/tmp‘}/tsd # For best performance, make sure
mkdir -p "$tsdtmp" # your temporary directory uses tmpfs
./build/tsdb tsd --port=4242
The Cache Directory stores temporary files generated when a graph is requested via the built-in GUI. These files should be purged periodically to free up space. OpenTSDB doesn‘t clean up after itself at this time but there is a script that should be run as a cron at least once a day located at tools/clean_cache.sh.
opentsdb basic install