Using the information described in Gathering Information, create and set up the config.json file.
Use the FQDNs that correspond to nodes connected to the byn1 network (nodes that have an InfiniBand IP address). See Finding the FQDN of Each Hadoop Node Used for Presto.
Replace the FQDNs in the examples with the FQDNs for your Hadoop nodes.
The following table shows the entries and types of values to use in the config.json file.
Entry | Description | Value |
---|---|---|
"username": | User name set up for prestoadmin users in Creating a System Administration Role for Presto | "prestoadmin", |
"port": | Default SSH port for a Teradata Hadoop cluster | "22", |
"coordinator": | Pre-defined host name of the Presto coordinator node | "xyz721m1.customer.com", Replace the FQDNs in the examples with the FQDNs for your Hadoop nodes.
|
"workers": | Pre-defined host names of the Presto worker nodes | ["xyz721d1.customer.com", "xyz721d2.customer.com", "xyz721d3.customer.com", "xyz721d4.customer.com", "xyz721d5.customer.com"], Replace the FQDNs in the examples with the FQDNs for your Hadoop nodes.
The number of worker node entries is determined by the number of Data Nodes in your Teradata Hadoop cluster.
|
"java8_home": | Path of the Java 8 home directory The Teradata Hadoop 6 Appliance has both Java 7 and Java 8 installed. This entry specifies the version of Java used with Presto (Java 8).
|
"/opt/teradata/jvm64/jdk8" |
- Log in to the prestoadmin node as prestoadmin. Configuration is always performed on the prestoadmin node, which is where Presto Admin (presto-admin) is installed.
- Go to the /home/prestoadmin/.prestoadmin directory. cd /home/prestoadmin/.prestoadmin
- Create and open the config.json file. vi config.json
-
Enter the following information, except replace the FQDNs in the examples with the FQDNs for your Hadoop nodes:
{ "username":"prestoadmin", "port":"22", "coordinator":"xyz721m1.customer.com", "workers":["xyz721d1.customer.com","xyz721d2.customer.com","xyz721d3.customer.com","xyz721d4.customer.com","xyz721d5.customer.com"], "java8_home":"/opt/teradata/jvm64/jdk8" }
Use quotation marks around entries, a colon between parameter and value, and commas between entries. - Save the config.json file. ESC:wq
-
Change the owner and file permissions only for the root user and the prestoadmin group.
- chmod 660 /home/prestoadmin/.prestoadmin/config.json
- chgrp prestoadmin /home/prestoadmin/.prestoadmin/config.json