Presto 101t Documentation

Java 8 Installation

Java 8 Installation

Prerequisites: Presto Admin Installation and Presto-Admin Configuration

The Oracle Java 1.8 JRE (64-bit), update 45 or higher, is a prerequisite for Presto. If a suitable 64-bit version of Oracle Java 8 is already installed on the cluster, you can skip this step.

The presto-admin tool simplifies installing Java 8 on all nodes in the Presto cluster. To install the Oracle Java 1.8 (64-bit) RPM for Linux using presto-admin, first download Oracle Java 8 and copy it to a location accessible by presto-admin. Next, run the following command to install Java 8 on each node in the Presto cluster.

$ sudo ./presto-admin package install <local_path_to_java_rpm>


The server-install-label will look for your Oracle Java 1.8 installation at locations where Java is installed normally using the binary or the RPM based installer. Otherwise, you need to have an environment variable called JAVA8_HOME set with your Java 1.8 install path. If JAVA8_HOME is not set or is pointing to an incompatible version of Java, the installer will look for the JAVA_HOME environment variable for a compatible version of Java. If neither of these environmental variables is set with a compatible version, and presto-admin fails to find Java 8 at any of the normal install locations, then server install will fail. After successfully running server install you can find the Java being used by Presto at /etc/presto/