安装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上做同样配置,然后启动:
完成。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。