Installing the Trino serverΒΆ

Prerequisites: Installing Trino Admin, Installing Java and Configuring Trino Admin

To install the Presto query engine on a cluster of nodes using trino-admin:

  1. Download trino-server-rpm-VERSION.ARCH.rpm
  2. Copy the RPM to a location accessible by trino-admin.
  3. Run the following command to install Presto:
$ ./trino-admin server install <local_path_to_rpm>

Presto! Presto is now installed on the coordinator and workers specified in your ~/.trinoadmin/config.json file.

The default port for Presto is 8080. If that port is already in use on your cluster, you will not be able to start Presto. In order to change the port that Presto uses, proceed to Configuring the Trino port.

There are additional configuration properties described at Configuring Trino that must be changed for optimal performance. These configuration changes can be done either before or after starting the Presto server and running queries for the first time, though all configuration changes require a restart of the Presto servers.

  1. Now, you are ready to start Presto:
$ ./trino-admin server start

This may take a few seconds, since the command doesn’t exit until trino-admin verifies that Presto is fully up and ready to receive queries.