How to Change the Agent Port
Changing the agent port takes place in two steps: at the command line, where you modify the config.py file and through a browser, where you modify MC settings.
Change the Agent Port in config.py
-
Log in as root on any cluster node and change to the agent directory:
#
cd /opt/vertica/agent
- Use any text editor to open
config.py
. - Scroll down to the
agent_port = 5444
entry and replace 5444 with a different port number. - Save and close the file.
- Copy
config.py
to the/opt/vertica/agent
directory on all nodes in the cluster. -
Restart the agent process by running the following command:
#
/etc/init.d/vertica_agent restart
If you are using Red Hat Enterprise Linux/CentOS 7, use the following command instead:
#
/opt/vertica/sbin/vertica_agent restart
- Repeat (as root) Step 6 on each cluster node where you copied the
config.py
file.
Change the Agent Port on MC
- Open a web browser and connect to MC as a user with MC ADMIN privileges.
- Navigate to MC Settings > Configuration.
- Change Default Vertica agent port from 5444 to the new value you specified in the
config.py
file. - Click Apply and click Done.
- Restart MC so MC can connect to the agent at its new port. See Restarting MC.