Manually deploying agents - rpm

Installs agents on Linux nodes using Yum packages.

address.yaml 

The location of the address.yaml file depends on the type of installation:

  • Package installations: /var/lib/datastax-agent/conf/address.yaml
  • Tarball installations: install_location/conf/address.yaml

opscenterd.conf 

The location of the opscenterd.conf file depends on the type of installation:

Location Package Installer (GUI or text mode) Tarball
Service No-service
/etc/opscenter/opscenterd.conf X X    
install_location/conf/opscenterd.conf     X X

Prerequisites

  • Root or sudo access to the machines where the agents will be installed.
  • The 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:

  1. 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
    
  2. Install the DataStax agent.
    # yum install datastax-agent
  3. In address.yaml set stomp_interface to the IP address that OpsCenter is using. You might have to create the file.
    $ echo "stomp_interface: <reachable_opscenterd_ip>" | sudo tee -a /var/lib/datastax-agent/conf/address.yaml
  4. If SSL communication is enabled in opscenterd.conf, use SSL in address.yaml.
    $ echo "use_ssl: 1" | sudo tee -a /var/lib/datastax-agent/conf/address.yaml
  5. Start the DataStax agent.
    $ sudo service datastax-agent start