Downloading the Presto Package - Presto on Teradata Appliance for Hadoop

Presto on Teradata Appliance for Hadoop 6 Installation, Configuration, and Upgrade Guide

Product
Presto on Teradata Appliance for Hadoop
Release Number
157t
Published
February 2017
Language
English (United States)
Last Update
2018-04-17
dita:mapPath
jpl1484678832656.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
jpl1484678832656
Product Category
Open Source
  1. On the prestoadmin node, log in as root.
  2. Using the presto-xxxt naming convention to identify the Presto package version, create a subdirectory for the Presto packages: mkdir -p /var/opt/teradata/packages/presto-<version>
    For example, /var/opt/teradata/packages/presto-148t.
  3. Download the presto_server_pkg.<version>.tar.gz Teradata Presto package from http://www.teradata.com/presto to /var/opt/teradata/packages/presto-<version> . The Teradata Presto package contains the following:
    • presto-docs-<version>.zip
    • presto_client_pkg.<version>.tar.gz
    • presto_server_pkg.<version>.tar.gz
  4. Untar the presto_server_pkg.<version>.tar.gz file.
    1. cd /var/opt/teradata/packages/presto-<version>
    2. tar -xvf presto_server_pkg.<version>.tar.gz The presto_server_pkg.<version>.tar.gz file contains the Presto Admin package prestoadmin-offline-<version>.tar.bz2.
    3. cd presto_server_pkg.<version>
  5. [Optional] Check for the following in the directory contents. ls | more
    presto-cli-<version>-executable.jar
    presto-server-rpm-<version>.x86_64.rpm
    prestoadmin-offline-<version>.tar.bz2
  6. Prepare prestoadmin-<version>-offline.tar.bz2 for the untar step by copying it to /var/opt/teradata. cp /var/opt/teradata/packages/presto-<version>/presto_server_pkg.<version>/prestoadmin-<version>-offline.tar.bz2 /var/opt/teradata/
  7. Untar the prestoadmin-<version>-offline.tar.bz2 file to place Presto Admin (prestoadmin-<version> ) into the /var/opt/teradata file system.
    The commands follow the Teradata Hadoop Appliance directory convention for product installation.
    1. cd /var/opt/teradata
    2. tar xvf prestoadmin-<version>-offline.tar.bz2
    3. rm prestoadmin-<version>-offline.tar.bz2
    4. If the owner/group of the prestoadmin directory and its contents are not set to prestoadmin/prestoadmin, type the following: chown -R prestoadmin:prestoadmin /var/opt/teradata/prestoadmin
    5. mv prestoadmin prestoadmin-<version> The mv command also creates the prestoadmin-<version> directory. Appending a version (for example, -1.4.1) to prestoadmin allows you to:
      • Maintain different versions of presto-admin on the system.
      • Make it easy to upgrade to a newer presto-admin version.
      • Roll back to a previous presto-admin version if the new version has a problem.
  8. Set the Presto Admin release to /opt/prestoadmin. ln -s /var/opt/teradata/prestoadmin-<version> /opt/prestoadmin

    The ln -s command creates the /opt/prestoadmin directory.