DataStax Help Center

OpsCenter NoHostAvailableException seen in agent logs for versions pre-5.2.1

Summary

OpsCenter versions pre-5.2.1 which use an older java driver version could cause different issues with agents connecting DSE nodes.

Symptoms

Although not dependent on any particular operation. The following error will be seen usually in the agent.log and also sometimes in the opscenterd.log

com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)

This could happen during general metrics collection or on user initiated actions like performing a snapshot

Cause

OpsCenter versions prior to 5.2.1 were bundled with an the older release of the java driver. This could cause issues connecting to DSE nodes exhibiting the same problems as detailed in the following tech note:

Clients using the java driver seeing "NoHostAvailableException" on nodes that are still reachable

The issue was outlined in the following internal jira:

OPSC-5657 - Upgrade java driver to 2.1.6

Workaround

Adding the hosts to the address.yaml may help to facilitate a workaround, for example

hosts: ["10.1.1.1","10.1.1.2","10.1.1.3"]

Then restart the datastax-agent service

Solution

Upgrade to OpsCenter 5.2.1

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk