You can install agents on Linux nodes using Yum packages.
Prerequisites
- Root or sudo access to the machines where the agents will be
installed.
- Your Cassandra or DataStax Enterprise cluster is up and running.
- OpsCenter is installed and configured.
- JMX connectivity is enabled on each node in the cluster.
Procedure
In a terminal for both 32- and 64-bit systems:
-
Add the DataStax Yum repository in the
/etc/yum.repos.d/datastax.repo file.
[datastax]
name = DataStax Repo for Apache Cassandra
baseurl = http://rpm.datastax.com/community
enabled = 1
gpgcheck = 0
-
Install the DataStax agent.
$ yum install datastax-agent
-
In address.yaml set
stomp_interface to the IP address that OpsCenter is using.
(You may have to create the file.)
$ echo "stomp_interface: <reachable_opscenterd_ip>" | sudo tee -a /var/lib/datastax-agent/conf/address.yaml
-
Start the DataStax agent.
$ sudo service datastax-agent start