Install Agents: Non-CDP - Hydra Services

Deploy Pulse Hydra Agent

There are three ways to install the Hydra Agent across all nodes in a cluster:

  • With SSH Enabled: If SSH is enabled for all nodes, you can deploy the Hydra Agent using the Ansible playbook.
  • Without SSH Enabled: If SSH is not enabled, the agent must be installed manually on each node, which is an inefficient approach.
  • Using the Ambari Mpack: Ambari uses its internal implementation to install custom services to any of the nodes of the cluster through Mpack. This allows Hydra to be installed in all nodes through a single click from Ambari.

With SSH Access

If you have the SSH access to the cluster nodes use the following steps:

  1. Deploy the Pulse Hydra agent by executing the following steps.
    1. Execute the following deploy command, here -f argument defines parallel ssh session to deploy agents
    2. Type y when the Have you run 'accelo configure agents' ?[y/n] question is displayed.
    3. Press the enter key.
Bash
Copy

Without the SSH Access

If you do not have the SSH access to the cluster nodes, contact the Acceldata Support Team for offline Hydra agent packages (RPM or DEB) that you can install to all the cluster nodes with your preferred configuration management tool of your choice.

Install Agent(s)

  1. Download and upload hystaller binary on mentioned node from provided link and credentials.
  2. Place hystaller on /tmp directory and follow the below steps of command sequences, here replace <PULSE_HOSTNAME> to hostname running Pulse UI (main server).
Bash
Copy
  1. SSH to main Pulse server running UI and run below command to sync configuration from Pulse server to new node.
Bash
Copy

Uninstall Agent(s)

  1. Using the same hystaller agent can be uninstalled
Bash
Copy

Deploy Pulse Hydra using the Ambari Mpack

Prerequisites

Tested Versions:

  • Ambari: 2.7.4.0, 2.6.2.2, 2.7.6.0
  • Cluster: HDP 3.1, HDP 2.6, ODP 3.2

Deployment of Hydra

  1. Download the Tarball in Ambari server and save it as /tmp/hystaller_mpack<version>.tar.gz .
Bash
Copy
  1. Install hystaller_mpack<version>.tar.gz in ambari-server .
Bash
Copy
  1. Add the Hydra Service symlink in the service list of Ambari.
Bash
Copy
  1. Restart ambari-server.
Bash
Copy

It must now restart the server with logs stating Server started listening on 8080.

  1. Navigate to the Ambari UI and select Add Service .
  1. Select Hydra from the services list and select the nodes to deploy hydra.
  1. Edit the configurations as per the requirements.
  1. Select Deploy to install and start Hydra in respective hosts.
  1. Once deployment is successful, we can get the status of each hydra agent as well as the status of pulsenode, pulselog, pulsejmx.

Check the logs of ad-hydra_default container to confirm if the hydra agents are working fine or not.

Installation of Hydra Agent on Newly Added Hosts

The Hydra Agent must be installed on at least one node in a cluster.

  1. Run the following commands on Ambari node.
Bash
Copy

The Hydra Agent is installed on all the nodes. Restart if required.

Test your Agent Configuration Changes

If you made any changes to telegraph(node agent), filebeat(logs agent) or jmx(jmx agent), and you want to test your feature, then:

  1. Build the Hydra test image from bitbucket and tag to running ad-hydra container and restart ad-hydra.
  2. From the Ambari server, stop the Hydra service.
  3. Delete the Hydra service.
  4. Add the Hydra Service, follow the above Images and provide Hydra Server URL, Hydra Installer Repository, PULSE UI URL and deploy.
  5. From Pulse node, do reconfig cluster, wait for ~2 minutes.
  6. Then check your changes on the nodes for your changes.

Uninstall Pulse Agents (Hydra) using Ambari UI

You can uninstall Hydra Agents from the nodes directly using the Ambari UI.

The Pulse Agents consist of all agents, such as Node, Logs, JMX, AXN, YARNMetrics, and Hydra.

Steps to uninstall Hydra Agents:

  1. In the Amabari UI, navigate to Services > Hydra.

  2. In the Hydra Summary page, click Hydra Agents. The list of hosts where Hydra Agents are installed appears on the screen.

  3. Select each host and click Components. The list of components installed appears. Locate Hydra Agents and click the three dots next to them, and repeat the steps below for each host in the same order.

    1. Select Stop. This stops all Hydra Agents installed on the host.
    2. Select Uninstall. This uninstalls all Hydra Agents from each host.
    3. Select Delete. This deletes all Hydra Agents from each host.
  4. In the Hydra Summary, click Actions > Delete Service.

  5. Run the uninstall Mpack command of the Ambari host using the CLI

Bash
Copy

Validate Pulse Installations

Run the following command to validate Pulse installation.

Bash
Copy

You get output as shown in the following image.

You can now check Pulse Web UI. Pulse Web UI runs on the 4000 port of the Pulse server’s IP.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard