安装OpenTSDB
时序数据库
下载版本:2.4.0
cd /usr/local
yum -y localinstall opentsdb-2.4.0.noarch.rpm
vi /usr/lib/systemd/system/opentsdb.service
,添加以下内容
[Unit]
Description=OpenTSDB Service
[Service]
Type=forking
PrivateTmp=yes
ExecStart=/usr/share/opentsdb/etc/init.d/opentsdb start
ExecStop=/usr/share/opentsdb/etc/init.d/opentsdb stop
Restart=on-abort
输入systemctl status opentsdb
查看状态
vim /etc/opentsdb/opentsdb.conf
tsd.core.auto_create_metrics = true
tsd.storage.hbase.zk_quorum = hadoop02:2181,hadoop03:2182
tsd.storage.fix_duplicates = true
tsd.http.request.enable_chunked = true
tsd.http.request.max_chunk = 4096000
tsd.storage.max_tags = 16
tsd.storage.hbase.data_table = tsdb
tsd.storage.hbase.uid_table = tsdb-uid
tsd.storage.hbase.tree_table = tsdb-tree
tsd.storage.hbase.meta_table = tsdb-meta
启动OpenTSDB
cd /usr/share/opentsdb
bash bin/tsdb tsd &
在Hadoop02、Hadoop03上做同样配置,然后启动:
打开浏览器,登陆地址:http://hadoop01:4242
完成。