A config.json file containing the valid host names of the coordinator and worker nodes in the Teradata Hadoop Appliance 6 cluster.
The installation script copies and installs the Presto Server rpm (presto-server rpm) packages on the coordinator and worker nodes defined in the config.json file.
If valid host names are not provided in the config.json file, the installation fails.
During installation, the script installs the following into directories on the prestoadmin/coordinator node and worker nodes in the cluster:
- Default config.properties, node.properties, and jvm.config Presto Admin (presto-admin) templates into the /home/prestoadmin/.prestoadmin directory
- One set of .properties and jvm.config files for the coordinator node defined in the config.json file
- One set of .properties and jvm.config files for all the worker nodes defined in the config.json file
- A tpch connector configuration into the /home/prestoadmin/.prestoadmin/catalog directory
Replace the FQDNs in the examples with the FQDNs for your Hadoop nodes.
- Log in to the prestoadmin node as prestoadmin.
-
Install the Presto Server package on the coordinator node and worker nodes.
Installing the Presto Server package deploys the default configuration files to coordinator and worker nodes. The default files are configured later.
- cd /opt/prestoadmin
-
./presto-admin server install /var/opt/teradata/packages/presto-<version>/presto_server_pkg.<version>/presto-server-rpm-<version>.x86_64.rpm
Something similar to the following displays.
Deploying rpm on xyz721d5.customer.com... Deploying rpm on xyz721d4.customer.com... ... Deploying rpm on xyz721m1.customer.com... Package deployed successfully on: xyz721m1.customer.com ... Package deployed successfully on: xyz721d5.customer.com Package installed successfully on:xyz721m1.customer.com Deploying configuration on:xyz721m1.customer.com Deploying tpch.properties connector configurations on: xyz721m1.customer.com ... Package installed successfully on: xyz721d5.customer.com Deploying configuration on: xyz721d5.customer.com Deploying tpch.properties connector configurations on: xyz721d5.customer.com Deploying tpch.properties connector configurations on: xyz721d5.customer.com
- chown -R prestoadmin:prestoadmin /home/prestoadmin/.prestoadmin/
- sudo chown -R presto:presto /etc/presto
-
[Optional] View the coordinator node directory and
subdirectories.
The worker nodes contain the same directory and subdirectories as the coordinator node.
-
ls -ld /etc/presto
drwxr-xr-x 3 presto presto 4096 Aug 29 21:54 presto
-
ls -l /etc/presto
total 20 drwxr-xr-x 2 presto presto 4096 Aug 29 21:54 catalog -rw------- 1 presto presto 210 Aug 29 21:54 config.properties -rw-r--r-- 1 presto presto 36 Aug 29 21:54 env.sh -rw------- 1 presto presto 229 Aug 29 21:54 jvm.config -rw------- 1 presto presto 280 Aug 29 21:54 node.properties
-
ls -l /etc/presto/catalog
total 4 -rw------- 1 presto presto 19 Aug 29 21:54 tpch.properties
-
ls -ld /etc/presto
-
[Optional] View the /home/prestoadmin subdirectories before you change permissions.
-
ls -lR /home/prestoadmin/.prestoadmin
/home/prestoadmin/.prestoadmin: total 16 -rw-rw---- 1 prestoadmin prestoadmin 233 Aug 30 08:14 config.json drwxrwx--- 2 prestoadmin prestoadmin 4096 Aug 30 08:18 connectors drwxrwx--- 2 prestoadmin prestoadmin 4096 Aug 30 08:18 coordinator drwxrwx--- 2 prestoadmin prestoadmin 4096 Aug 30 08:18 workers /home/prestoadmin/.prestoadmin: total 4 -rwxr-xr-x 1 prestoadmin prestoadmin 19 Aug 30 08:18 tpch.properties /home/prestoadmin/.prestoadmin: total 12 -rw-r--r-- 1 prestoadmin prestoadmin 210 Aug 30 08:18 config.properties -rw-r--r-- 1 prestoadmin prestoadmin 228 Aug 30 08:18 jvm.config -rw-r--r-- 1 prestoadmin prestoadmin 235 Aug 30 08:18 node.properties /home/prestoadmin/.prestoadmin: total 12 -rw-r--r-- 1 prestoadmin prestoadmin 140 Aug 30 08:18 config.properties -rw-r--r-- 1 prestoadmin prestoadmin 228 Aug 30 08:18 jvm.config -rw-r--r-- 1 prestoadmin prestoadmin 235 Aug 30 08:18 node.properties
-
ls -lR /home/prestoadmin/.prestoadmin
- Change the permissions on the /home/prestoadmin/.prestoadmin subdirectories. chmod 660 `find /home/prestoadmin/.prestoadmin -type f`
-
[Optional] View the new permissions for the /home/prestoadmin/.prestoadmin subdirectories.
ls -lR /home/prestoadmin/.prestoadmin
/home/prestoadmin/.prestoadmin: total 16 -rw-rw---- 1 prestoadmin prestoadmin 233 Aug 30 08:14 config.json drwxr-xr-x 2 prestoadmin prestoadmin 4096 Aug 30 08:18 connectors drwxr-xr-x 2 prestoadmin prestoadmin 4096 Aug 30 08:18 coordinator drwxr-xr-x 2 prestoadmin prestoadmin 4096 Aug 30 08:18 workers /home/prestoadmin/.prestoadmin/catalog: total 4 -rw-rw---- 1 prestoadmin prestoadmin 19 Aug 30 08:18 tpch.properties /home/prestoadmin/.prestoadmin/coordinator: total 12 -rw-rw---- 1 prestoadmin prestoadmin 210 Aug 30 08:18 config.properties -rw-rw---- 1 prestoadmin prestoadmin 228 Aug 30 08:18 jvm.config -rw-rw---- 1 prestoadmin prestoadmin 235 Aug 30 08:18 node.properties /home/prestoadmin/.prestoadmin/workers: total 12 -rw-rw---- 1 prestoadmin prestoadmin 140 Aug 30 08:18 config.properties -rw-rw---- 1 prestoadmin prestoadmin 228 Aug 30 08:18 jvm.config -rw-rw---- 1 prestoadmin prestoadmin 235 Aug 30 08:18 node.properties