An agent on a Cloudera Base on premises cluster does not
start when another service on the same host uses the HTTP or HTTPS port of the agent. Change the
agent ports in Cloudera Manager, and restart the agent.
Symptoms
This topic applies only to agents that run on a Cloudera Base on premises cluster. Agents that run on the Anywhere Cloud cluster do not use host ports.
The CMA Agent role does not start, and the agent server log shows a
message like the following:
Web server failed to start. Port 9090 was already in use.
Cause
By default, the agent listens on port 9090 for HTTP and 9093 for HTTPS. If another service on
the host already uses one of these ports, the agent does not start. The HBase Thrift Server, for example, also uses
port 9090 by default.
Solution
-
On the agent host, find the process that uses the port:
sudo ss -ltnp | grep -E ':(9090|9093)\b'
-
In Cloudera Manager, open the configuration of the CMA
Agent service.
-
Set Agent Server HTTP port and Agent Server HTTPS
port to ports that are free on every agent host, for example 9190 and
9193.
-
Save the changes.
-
Restart the CMA Agent service.
If the agent registered before you changed the ports, the URL of the agent on the Registration tab still
displays the old port, and you cannot open the web interface of the agent from that
link. Revoke the agent, and register it again with a new token. See Agent registration token is rejected or expired.
Change the ports. Do not turn on Skip Port Check to work
around the conflict.
The agent starts and listens on the new ports. The connection from the agent
to the Cloudera Migration Assistant engine does not use these ports, so you do
not change anything on Anywhere Cloud.