码迷,mamicode.com
首页 > 数据库 > 详细

opentsdb basic install

时间:2016-10-02 10:56:03      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

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

标签:

原文地址:http://www.cnblogs.com/huaxiaoyao/p/5927246.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!