8.5. Configuring the Presto Port
By default, Presto uses 8080 for the HTTP port. If the port is already in use on any given node on your cluster, Presto will not start on that node(s).
To configure the server to use a different port:
1. Select a port that is free on all of the nodes. You can check if a port is already in use on a node by running the following on that node:
netstat -an |grep 8081 |grep LISTEN
It will return nothing if port 8081 is free.
- Modify the following properties in
~/.prestoadmin/coordinator/config.properties
and~/.prestoadmin/workers/config.properties
:
http-server.http.port=<port>
discovery.uri=http://<coordinator_ip_or_host>:<port>
Run the following command to deploy the configuration change to the cluster:
./presto-admin configuration deploy
Restart the Presto servers so that the changes get picked up:
./presto-admin server restart