Setting Up the config.json File - 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
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"
  1. 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.
  2. Go to the /home/prestoadmin/.prestoadmin directory. cd /home/prestoadmin/.prestoadmin
  3. Create and open the config.json file. vi config.json
  4. 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.
  5. Save the config.json file. ESC:wq
  6. Change the owner and file permissions only for the root user and the prestoadmin group.
    1. chmod 660 /home/prestoadmin/.prestoadmin/config.json
    2. chgrp prestoadmin /home/prestoadmin/.prestoadmin/config.json