【发布时间】:2016-07-17 23:12:47
【问题描述】:
我已经在 Ubuntu 15.10 中安装了 Cassandra,创建了一个集群并建立了 spring 数据连接。如何使用 Opscenter 监控同一个集群?
【问题讨论】:
我已经在 Ubuntu 15.10 中安装了 Cassandra,创建了一个集群并建立了 spring 数据连接。如何使用 Opscenter 监控同一个集群?
【问题讨论】:
要使用 opscenter 监控 cassandra 集群,您需要:
在一台机器上安装 opscenter(不需要是集群中的一个节点)。在 ubuntu 中,您可以只使用 datastax 存储库:
$ echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/datastax.community.list
$ curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
$ sudo apt-get 更新 $ sudo apt-get install opscenter
$ sudo service opscenterd start
您可以通过下一个 url 连接到 opscenter:http://opscenter-host:8888/
将现有集群添加到 opscenter。
在每个节点中安装 datastax 代理。这可以通过 opscenter 完成,也可以在每个节点中手动安装:
$ sudo apt-get 更新 $ sudo apt-get install datastax-agent
【讨论】: