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

  1. Log in as root on any cluster node and change to the agent directory:

    # cd /opt/vertica/agent
  2. Use any text editor to open config.py.
  3. Scroll down to the agent_port = 5444 entry and replace 5444 with a different port number.
  4. Save and close the file.
  5. Copy config.py to the /opt/vertica/agent directory on all nodes in the cluster.
  6. 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
  7. Repeat (as root) Step 6 on each cluster node where you copied the config.py file.

Change the Agent Port on MC

  1. Open a web browser and connect to MC as a user with MC ADMIN privileges.
  2. Navigate to MC Settings > Configuration.
  3. Change Default Vertica agent port from 5444 to the new value you specified in the config.py file.
  4. Click Apply and click Done.
  5. Restart MC so MC can connect to the agent at its new port. See Restarting MC.