- On the prestoadmin node, log in as root.
-
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.
-
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
-
Untar the presto_server_pkg.<version>.tar.gz file.
- cd /var/opt/teradata/packages/presto-<version>
- 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.
- cd presto_server_pkg.<version>
-
[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
- 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/
-
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.
- cd /var/opt/teradata
- tar xvf prestoadmin-<version>-offline.tar.bz2
- rm prestoadmin-<version>-offline.tar.bz2
- 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
-
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.
-
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.