7.3. Setting up Presto Admin on an Amazon EMR cluster

To install, configure and run Presto Admin on an Amazon EMR cluster, follow the instructions in Quick Start Guide, but pay attention to the notes or sections specfic to EMR cluster. We reiterate these EMR specific caveats below:

  • To install Presto Admin on an Amazon EMR cluster, follow the instructions in Installing Presto Admin except for the following difference:

  • To configure Presto Admin on an Amazon EMR cluster, follow the instructions in Configuring Presto-Admin. Specifically, we recommend the following property values during the configuration:

    • Use hadoop as the username instead of the default username root in the config.json file.
    • Use the host name of the EMR master node as the coordinator in the config.json file.
  • To run Presto Admin on EMR, see the sections starting from Installing the Presto Server onwards in Quick Start Guide) except for the following caveats:

    • The default version of Java installed on an EMR cluster (up to EMR 4.4.0) is 1.7, whereas Presto requires Java 1.8. Install Java 1.8 on the EMR cluster by following the instructions in Installing Java 8.

    • For running Presto Admin commands on an EMR cluster, do the following:
      • Copy the .pem file associated with the Amazon EC2 key pair to the Presto Admin installation node of the EMR cluster.

      • Use the -i <path to .pem file> input argument when running presto-admin commands on the node.

        </path/to/presto-admin> -i </path/to/your.pem> <presto_admin_command>